Move under www to ease rsync
This commit is contained in:
17
www/eps/hpr2824/hpr2824_awk15_ex4.awk
Executable file
17
www/eps/hpr2824/hpr2824_awk15_ex4.awk
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/awk -f
|
||||
|
||||
# Downloadable example 4 for GNU Awk Part 15
|
||||
|
||||
BEGIN {
|
||||
if (ARGC != 2 ) {
|
||||
print "Needs a file name argument" > "/dev/stderr"
|
||||
exit
|
||||
}
|
||||
|
||||
data = ARGV[1]
|
||||
|
||||
while ( (getline line < data) > 0 )
|
||||
print line
|
||||
close(data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user