Sunday, January 07, 2007

sed

If you want to quickly check for duplicate package/port installations,
try the following pkg_info command.

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

0 Comments:

Post a Comment

<< Home