# Two-step database file conversion script if [ $# <> 2 ]; then echo Error: Please include 1) a file to convert echo and 2) a username on the command line. echo (e.g. switch hotelreg.dat thomasa) echo Contact the sys admin for assistance exit fi if [ -f $1 ]; then if [ ‘grep -c $2 /etc/passwd‘ ]; then convertdb $1 -user $2 > tmp.$$ filterdb tmp.$$ > $1 fi fi
if
grep