Added Cyg-Win
This commit is contained in:
parent
82cbc206eb
commit
413c315806
10586 changed files with 3806249 additions and 0 deletions
24
Agent-Windows/OGP64/usr/share/awk/rewind.awk
Normal file
24
Agent-Windows/OGP64/usr/share/awk/rewind.awk
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# rewind.awk --- rewind the current file and start over
|
||||
#
|
||||
# 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
|
||||
# September 2000
|
||||
|
||||
function rewind( i)
|
||||
{
|
||||
# shift remaining arguments up
|
||||
for (i = ARGC; i > ARGIND; i--)
|
||||
ARGV[i] = ARGV[i-1]
|
||||
|
||||
# make sure gawk knows to keep going
|
||||
ARGC++
|
||||
|
||||
# make current file next to get done
|
||||
ARGV[ARGIND+1] = FILENAME
|
||||
|
||||
# do it
|
||||
nextfile
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue