Subject: Re: pkg_delete ALL how to do this pls?
To: Paul (NCC/CS). <pts@bom.gov.au>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 02/23/2005 20:49:35
On Thu, 24 Feb 2005, Paul (NCC/CS). wrote:
> I've tried:
>
>
> pkg_info | awk '{ print $1 }' | pkg_delete -f
pkg_delete does not read standard input for package names.
Use xargs to read standard input to place the lines read as
command line arguments. See other email for example.
> pkg_delete -f < `pkg_info | awk '{ print $1 }' `
Redirection operators are used to read from a file. Get rid of the "<".
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/