Category : Files from Magazines
Archive   : DDJ8706.ZIP
Filename : BBS.L1

 
Output of file : BBS.L1 contained in archive : DDJ8706.ZIP

Listing One

list



1 TPATH=/u/bbs/rbin

# check the command argument - $1

2 if [ "$1" = MS]
3 then

# argument is for MS-DOS files

4 echo 'who am i | cut -f1 -d" " ' 'date | cut -c1-16 ' "MS.list" >>/u/bbs/log.file
5 echo
6 more $TPATH/MS.list

7 elif [ "$1" = Mac ]
8 then

# argument is for Macintosh files

9 echo 'who am i | cut -f1 -d" " ' 'date | cut -c1-16 ' "Mac.list" >>/u/bbs/log.file
10 echo
11 more $TPATH/Mac.list

12 elif [ "$1" = Unix ]
13 then

# argument is for Unix files

14 echo 'who am i | cut -f1 -d" " ' 'date | cut -c1-c16 ' "Unix.list" >>/u/bbs/log.file
15 echo
16 more $TPATH/Unix.list
17 else

# no argument was entered

18 echo
19 echo "List which directory? (MS, Mac, or Unix)"
20 fi