Linux.com

Don't forget -exec!

Posted by: Anonymous Coward on November 01, 2005 10:51 PM
Don't forget about -exec, one very handy part of find. Very useful when there are too many files in a directory for example.

find / -name '*.jpg' -exec mv {} {}.old \;

The above would search recursively through and rename all<nobr> <wbr></nobr>.jpg files to<nobr> <wbr></nobr>.jpg.old. Probably not the best example, but extreemly useful.

#

Return to CLI Magic: GNU find