home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
programming
/
misc_programming
/
filename.awk
< prev
next >
Wrap
Text File
|
1990-06-13
|
458b
|
17 lines
# Date: 06-03-90 19:07
# From: Herb Martin
# To: Rob Duff
# Subj: comparison:sample
FNR < 3 {
# the output ALWAYS claims the filenames are equal AFTER the first
# file, even though the strings printed are DIFFERENT
printf("FNR %d: [%14s]-[%14s] ", FNR, lastfile, FILENAME) ;
if (lastfile != FILENAME) print "they are NOT equal"
else print "they are equal"
lastfile = FILENAME
}
FNR == 3 { print "" }