Skip to content

Instantly share code, notes, and snippets.

@aceberg
Created November 23, 2012 14:43
Show Gist options
  • Save aceberg/4135916 to your computer and use it in GitHub Desktop.
Save aceberg/4135916 to your computer and use it in GitHub Desktop.
Display package-list as a table
#!/bin/sh
dpkg --list | sed 's/^.. //;s/ .*$//;1,5d;/^lib/d' | awk 'ORS=NR%3?" ":"\n"' | column -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment