GENERIC make buildkernel error / fails - posix_fadvise

Matthew Seaman m.seaman at infracaninophile.co.uk
Sun Jan 22 19:16:56 UTC 2012


On 22/01/2012 19:00, cliftonr at volcano.org 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: matthew at infracaninophile.co.uk               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20120122/97ad4dea/signature.pgp


More information about the freebsd-stable mailing list