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