[wplug] find + operation

Philip Reiche Philip.Reiche at NETL.DOE.GOV
Fri Mar 2 11:57:03 EST 2007


This might help:
http://www.matilda.com/hacmp/find_tricks.htm


>>> "Zach" <netrek at gmail.com> 3/2/2007 11:46 AM >>>

Afternoon,

I would like to be able to do standard file operations like cp, rm and
mv on the output of: find . -name *.xls -print

Or more generally something like:

'fcp . $arg1 $arg2'
this would find all files in CWD and down and then copy:
where $arg1 is the thing we're looking for and $arg2 is the directory
where it will be copied

'frm / $arg1'
this would remove all files from top of filesystem down

'fmv . $arg1 $arg2'
etc....

Perhaps another utility exists to do this or there is  a cool BASH way to do it?

Zach
_______________________________________________
wplug mailing list
wplug at wplug.org
http://www.wplug.org/mailman/listinfo/wplug
-------------- next part --------------
Skipped content of type multipart/related


More information about the wplug mailing list