On Wed, Feb 17, 2010 at 15:57, Sam Kuper <[email protected]> wrote:
>
> port installed | sed 's/ (active)//g' | xargs -0 port dependents

As has already been posted, port_cutleaves is probably a better
solution.  But here's the correct xargs syntax anyway.

port installed | sed 's/ (active)//g;s/@.*//;s/ //g' | gxargs -d "\n"
-n1 port dependents

Note that I used gxargs, provided by findutils, as Apple provided
xargs does not understand the "-d" flag to change the delimeter.
Also, "-0" would be used to tell xargs that records are separated by a
null character.  This usually only occurs with output from "find
-print0".
I also stripped a bit more from the "port installed" output.

-- 
arno  s  hautala    /-|   [email protected]

pgp eabb6fe6 d47c500f b2458f5d a7cc7abb f81c4e00
_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to