Find: Difference between revisions
→Exec Commands
(updated) |
|||
Line 169:
*Perform Any Operation on Files Found From Find Command
find <CONDITION to Find files> -exec <OPERATION> \;
Execute any Unix shell command/custom shell script/command on find command output files:
rm
mv
ls
md5sum :
wc : count the total number of words on find command output files.
<br />
*List only Directories
find ~/test ! -name *.jpg ! -name *.gif ! -name *.png ! -name *.jpeg ! -name *.JPG ! -name *.bmp ! -name *.html ! -name *.htm ! -type d
<br />
|