#!/bin/sh apt-file update zcat ~/.cache/apt-file/*.gz | \ egrep '^(usr/bin/|sbin/|bin/)' | \ cut -f1 -d' ' | \ perl -pe 's/^(.*)\/(.*)$/$2/' | \ sort | uniq > ~/used_names.txt