3 # get AP news headline list or the given story
6 wire='http://www.newsday.com/news/nationworld/wire'
8 hget $wire | #tee /tmp/ap.$pid |
9 sed -n '/<h1>AP Top News/,/AP News Wire/p' |
16 s/\[\/news\/nationworld\/wire\//|/
24 for (i = 1; i < NF; i++)
26 printf("ap %-40s # %s\n", $NF, s);
30 hget $wire/sns-ap-^$1^.story |
35 /^Subscribe to Newsday home delivery/,$d