Move under www to ease rsync
This commit is contained in:
15
www/eps/hpr2816/hpr2816_awk14_ex2.awk
Executable file
15
www/eps/hpr2816/hpr2816_awk14_ex2.awk
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/awk -f
|
||||
|
||||
# Downloadable example 2 for GNU Awk Part 14
|
||||
|
||||
BEGIN {
|
||||
cmd = "sort -u | nl"
|
||||
}
|
||||
|
||||
NR > 1 {
|
||||
print $1 | cmd
|
||||
}
|
||||
|
||||
END {
|
||||
close(cmd)
|
||||
}
|
||||
Reference in New Issue
Block a user