Move under www to ease rsync
This commit is contained in:
10
www/eps/hpr2816/hpr2816_awk14_ex1.awk
Executable file
10
www/eps/hpr2816/hpr2816_awk14_ex1.awk
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/awk -f
|
||||
|
||||
# Downloadable example 1 for GNU Awk Part 14
|
||||
|
||||
NR > 1 {
|
||||
colour = $2
|
||||
fname = "awk14_" colour "_fruit"
|
||||
printf "Writing %s to %s\n",$1,fname
|
||||
print $1 > fname
|
||||
}
|
||||
Reference in New Issue
Block a user