source: Daodan/MinGW/msys/1.0/share/awk/nextfile.awk@ 1126

Last change on this file since 1126 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 386 bytes
Line 
1# nextfile --- skip remaining records in current file
2# correctly handle successive occurrences of the same file
3#
4# Arnold Robbins, arnold@skeeve.com, Public Domain
5# May, 1993
6
7# this should be read in before the "main" awk program
8
9function nextfile() { _abandon_ = FILENAME; next }
10
11_abandon_ == FILENAME {
12 if (FNR == 1)
13 _abandon_ = ""
14 else
15 next
16}
Note: See TracBrowser for help on using the repository browser.