On 22/01/2012 19:00, [email protected] wrote: > If rm had an option to take files from standard input, or if > there's another program I'm not aware of which does this, it > could serve as the right-hand side of this.
xargs(1) -- generic solution to taking a list of command arguments from
a file or pipe, and building a command line from them.
So, supposing you have a list of files (one per line) you want to delete
in a file called 'goners':
xargs rm -f < goners
xargs(1) is very commonly used in pipelines with find(1).
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: [email protected] Kent, CT11 9PW
signature.asc
Description: OpenPGP digital signature
