3
# Conversion of VIEWDATA.BAT to shell script.
5
DATAFILE=/home/bozo/datafiles/book-collection.data
8
# @ECHO OFF Command unnecessary here.
10
if [ $# -lt "$ARGNO" ] # IF !%1==! GOTO VIEWDATA
12
less $DATAFILE # TYPE C:\MYDIR\BOOKLIST.TXT | MORE
14
grep "$1" $DATAFILE # FIND "%1" C:\MYDIR\BOOKLIST.TXT
19
# GOTOs, labels, smoke-and-mirrors, and flimflam unnecessary.
20
# The converted script is short, sweet, and clean,
21
#+ which is more than can be said for the original.