Initial Windows agent repository
This commit is contained in:
commit
a0db0c2e5b
10589 changed files with 3844063 additions and 0 deletions
25
OGP64/usr/share/awk/zerofile.awk
Normal file
25
OGP64/usr/share/awk/zerofile.awk
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# zerofile.awk --- library file to process empty input files
|
||||
#
|
||||
# user supplies zerofile() function
|
||||
#
|
||||
# This file and how to use it are described in the manual.
|
||||
# Therefore, we respectfully advise you to Read The Fine Manual
|
||||
# for more information.
|
||||
#
|
||||
# Arnold Robbins, arnold@skeeve.com, Public Domain
|
||||
# June 2003
|
||||
|
||||
BEGIN { Argind = 0 }
|
||||
|
||||
ARGIND > Argind + 1 {
|
||||
for (Argind++; Argind < ARGIND; Argind++)
|
||||
zerofile(ARGV[Argind], Argind)
|
||||
}
|
||||
|
||||
ARGIND != Argind { Argind = ARGIND }
|
||||
|
||||
END {
|
||||
if (ARGIND > Argind)
|
||||
for (Argind++; Argind <= ARGIND; Argind++)
|
||||
zerofile(ARGV[Argind], Argind)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue