25 November 2014

Find A File using Pattern and Executing Command

Find files with ".txt" extension and then delete the file

find . -name "*.txt" -print0 | xargs -0 rm


Find files contain "empathy" extension and show the files list

find ~ -iname '*empathy*' -print

No comments:

Post a Comment