Find: Difference between revisions

(updated)
Line 169:
*Perform Any Operation on Files Found From Find Command
find <CONDITION to Find files> -exec <OPERATION> \;
 
rm : remove the files found by find command.
Execute any Unix shell command/custom shell script/command on find command output files:
mv : rename the files found.
rm ls -l : :remove the getfiles detailsfound of theby find command output files.
mv md5sum : findrename command outputthe files found.
ls wc -l : countget the total numberdetails of words onthe find command output files.
md5sum : Execute any Unix shell command/custom shell script/command on find command output files.
wc : count the total number of words on find command output files.
<br />
 
*List only Directories
 
<pre style="width: 97%; overflow-x: scroll;">
find ~/test ! -name *.jpg ! -name *.gif ! -name *.png ! -name *.jpeg ! -name *.JPG ! -name *.bmp ! -name *.html ! -name *.htm ! -type d </pre>
<br />