List outdated port names with awk

MacPorts. Sometimes your ports are outdated. There’s a pseudo-portname for them. The report has many columns. And I only want the names, not their versions.


port list outdated | awk 'BEGIN { RS="\n" } { print $1 }' > names_of_old_ports.txt

Done.

Update: got a bug, fixed it. Sheesh.

[tags]awk,unix[/tags]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>