Tag: find

Copy all Txt Files

Find and copy all files with ‘.txt’ extention from a directory to another find /home/binnyva -name ‘*.txt’ | xargs cp…

Remove all EXE files

Removes all exe files in the current directory tree. Useful to clear virus from flash drives. find . -name “*.exe”…

Searching text in a directory using find and grep

Use find and grep to search for a specific text in a directory. In this example, we search for files…

Remove CVS Information from a Folder

find -name CVS -exec rm -rf {} \; NOTE: Works only with bash