source: Daodan/MinGW/msys/1.0/share/awk/readable.awk@ 1108

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

Daodan: Added Windows MinGW and build batch file

File size: 446 bytes
RevLine 
[1046]1# readable.awk --- library file to skip over unreadable files
2#
3# Arnold Robbins, arnold@skeeve.com, Public Domain
4# October 2000
5
6BEGIN {
7 for (i = 1; i < ARGC; i++) {
8 if (ARGV[i] ~ /^[A-Za-z_][A-Za-z0-9_]*=.*/ \
9 || ARGV[i] == "-")
10 continue # assignment or standard input
11 else if ((getline junk < ARGV[i]) < 0) # unreadable
12 delete ARGV[i]
13 else
14 close(ARGV[i])
15 }
16}
Note: See TracBrowser for help on using the repository browser.