Move under www to ease rsync
This commit is contained in:
13
www/eps/hpr2824/hpr2824_awk15_ex6.awk
Executable file
13
www/eps/hpr2824/hpr2824_awk15_ex6.awk
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/awk -f
|
||||
|
||||
# Downloadable example 6 for GNU Awk Part 15
|
||||
|
||||
BEGIN {
|
||||
cmd = "wget -q http://hackerpublicradio.org/stats.php -O -"
|
||||
while ((cmd | getline line) > 0);
|
||||
close(cmd)
|
||||
|
||||
split(line,fields,",")
|
||||
printf "Queued shows on HPR: %d\n", fields[10]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user