Finding files on the command line and doing something with them
By fritz
find a_directory -iname “*.zip” -exec unzip -d another_directory {} \;
This will unzip all files from a_directory into another_directory
find a_directory -iname ‘*.gif’ -or -iname ‘*.jpg’ -exec cvs add -kb {} \;
This add all image files inside a_directory to CVS as binary.
This entry was posted on 2006.05.11, Thu at 11:59 and is filed under *NIX, HowTo. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.