~/bin/where #!/bin/sh usage() { echo "Usage: `basename $0` command" exit 1 } command=$1 [ -z "$command" ] && usage commandpath=`which $command 2>/dev/null` [ -n "$commandpath" ] && rpm -qif "$commandpath"
~/bin/showcontrol #!/bin/sh usage() { echo "Usage: `basename $0` FACILITY" echo "see also: control(8)" exit 1 } facility=$1 [ -z "$facility" ] && usage control-dump $facility 2>/dev/null for status in `control $facility list 2>/dev/null` do control $facility $status echo $status: $(ls -l $(which $facility)) done control-restore $facility 2>/dev/null