2009-03-21

find and execute

find -name "*.rar" -exec unrar e {} \;
recursively searches for rar files, extracts the contents of each. matching filenames are substitutes in for the {} and executed, one at a time. this can be slower than piping the results of find to xargs, but doesnt fail when the executed command can only work on one file at a time.

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home