Pages

Saturday, May 26, 2007

An Interesting Command Line

I came across this command line the other day

pkg_info | sort | sed -e 's/-[0-9].*$//' | uniq -c | grep -v '^[[:space:]]*1'

Shows the number of versions of a package that is installed on a FreeBSD machine.

No comments:

Post a Comment