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]