#!/bin/bash # Original script by Jim Pick , GPL'd of course # # Completely rewritten several times with many new features and # enhancements (plus numerous patches and by others, see the changelog) # by Craig Sanders DLOCATE="$0" DLOCATEDB=/var/lib/dlocate/dlocatedb DPKGLIST=/var/lib/dlocate/dpkg-list DPKG_INFO=/var/lib/dpkg/info DPKG_ARCH=$(dpkg --print-architecture) COMPRESS_DLOCATEDB=0 GREP='grep' [ -e /etc/default/dlocate ] && . /etc/default/dlocate [ "$COMPRESS_DLOCATE" = "1" ] && GREP='zgrep' usage() { cat <<__EOF__ Usage: dlocate [