folding arguments

Paul Lew lew at gsg.UUCP
Fri Feb 12 14:35:47 AEST 1988


I forgot to mention that you may use the standard method:

   $ find $DIR -exec command '{}' \;		instead of:
   $ find $DIR -print | sed s/^/command /' | sh

However, the 2nd method allows the find command to be any command that
generates a list of filenames and is more generic. e.g.,

   $ tar t | sed s/^/command /' | sh
-- 
Paul Lew			{oliveb,harvard,decvax}!gsg!lew	(UUCP)
General Systems Group, 5 Manor Parkway, Salem, NH 03079	(603) 893-1000



More information about the Comp.unix.wizards mailing list