Date: Sun, 22 Jan 2012 19:16:43 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-stable@freebsd.org Subject: Re: GENERIC make buildkernel error / fails - posix_fadvise Message-ID: <4F1C609B.3010800@infracaninophile.co.uk> In-Reply-To: <74dee0a775b93db4771f4de96eaf86c2@volcano.org> References: <20120111161110.4258969c.rpclark@tds.net> <CAN-pd=cPY=Eg1RintaBx6GAon3FsLm-X0h6yvSBxzq=EZ5ukbg@mail.gmail.com> <20120112200843.2a348d2f.rpclark@tds.net> <4F0F8E6F.8000909@FreeBSD.org> <74dee0a775b93db4771f4de96eaf86c2@volcano.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On 22/01/2012 19:00, cliftonr@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@infracaninophile.co.uk Kent, CT11 9PW
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk8cYKMACgkQ8Mjk52CukIyTnQCeLW6C//w84xOpehjPfeYKmUfd
KykAn3BdWrxjUIBcL5X7gs4ZwrM28RxX
=fq/5
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F1C609B.3010800>
