Remove SVN Info from a Folder
Tagged with: delete, find, remove, subversion, svn
Monday, July 7th, 2008 09:41 PM
This command removes the SVN data from a folder.
find -name .svn -exec rm -rf {} \;
This command removes the SVN data from a folder.
find -name .svn -exec rm -rf {} \;
Search files with ‘.rpm’ extension ignoring removable partitions as cdrom, pen-drive, etc.
find / -xdev -name \*.rpm
Search files created or changed within 10 days
find /usr/bin -type f -mtime -10
Find and copy all files with ‘.txt’ extention from a directory to another
find /home/binnyva -name '*.txt' | xargs cp -av --target-directory=/home/backup/ --parents
Removes all exe files in the current directory tree. Useful to clear virus from flash drives.
find . -name "*.exe" -delete
Use find and grep to search for a specific text in a directory. In this example, we search for files which uses the PHP short tag - <?
find -name '*.php' -exec grep '<?[^p\=]' {} \;
find -name CVS -exec rm -rf {} \;
NOTE: Works only with bash