Handy one-liner for maintainers

I maintain a large enough collection of Fink packages that I sometimes forget to check for upstream updates regularly. I’ve come up with a one-line script that meets my needs:

for URL in `fink list -t -m alexkhansen | cut -f2 \
| xargs fink dumpinfo -fhomepage | cut -d\  -f2 | sort \
| uniq | grep -v undefined | grep -v Obsolete ` ; \
do open $URL ; read LINE ; done

This grabs a list of my packages, finds their home pages, removes duplicates, entries that show “undefined”, e.g. bundles, and Obsolete, i.e. packages that are obsolete.  It then opens one page at a time–since I don’t want to bring my machine to a crawl by opening all of them. 🙂


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s