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]

Published by olleolleolle

Olle is a programmer, enjoying sunny Malmö in Sweden.

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.