awk

Regina Dawley zcf1025 at dpscg1.UUCP
Thu Sep 28 01:12:10 AEST 1989


matchlines = 0
while ( getline < "temp.data" > 0) {
input[matchlines] = $0
system("head -5 < tale.data > tale.hdr")
print $0 >> tale.hdr
system("tail -29 < tale.data >> tale.hdr")
system("sprint tale.hdr")
matchlines++
}



More information about the Comp.unix.wizards mailing list