codekingpro/portable-devtools
114k
1# zerofile.awk --- library file to process empty input files2#3# user supplies zerofile() function4#5# This file and how to use it are described in the manual.6# Therefore, we respectfully advise you to Read The Fine Manual7# for more information.8#9# Arnold Robbins, arnold@skeeve.com, Public Domain10# June 200311 12BEGIN { Argind = 0 }13 14ARGIND > Argind + 1 {15 for (Argind++; Argind < ARGIND; Argind++)16 zerofile(ARGV[Argind], Argind)17}18 19ARGIND != Argind { Argind = ARGIND }20 21END {22 if (ARGIND > Argind)23 for (Argind++; Argind <= ARGIND; Argind++)24 zerofile(ARGV[Argind], Argind)25}26 