diff options
author | Fulton Browne <git@fulton.software> | 2021-06-11 23:26:50 +0000 |
---|---|---|
committer | Fulton Browne <git@fulton.software> | 2021-06-11 23:26:50 +0000 |
commit | af95aa431d6e511355a6eb953ab7845f94c0e2d7 (patch) | |
tree | d0e7c45c19699afad18eade973652b90e4466d02 /rc | |
parent | 09b0eb0d1ac7a66569263d2c48aea96e524ccebe (diff) | |
download | plan9front-af95aa431d6e511355a6eb953ab7845f94c0e2d7.tar.xz |
Remove ap(1)
Cool script - does not work.
Diffstat (limited to 'rc')
-rwxr-xr-x | rc/bin/ap | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/rc/bin/ap b/rc/bin/ap deleted file mode 100755 index 93462e821..000000000 --- a/rc/bin/ap +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/rc -# -# get AP news headline list or the given story -# - -wire='http://www.newsday.com/news/nationworld/wire' -if ( ~ $#* 0 ) - hget $wire | #tee /tmp/ap.$pid | - sed -n '/<h1>AP Top News/,/AP News Wire/p' | - htmlfmt -a -w 100 | - sed -n ' - /^• / { - N - s/^• / /g - s/\n/ /g - s/\[\/news\/nationworld\/wire\//|/ - s/sns-ap-// - s/\.story.*$// - p - }' | - awk -F '|' ' - { - s = ""; - for (i = 1; i < NF; i++) - s = s " " $i; - printf("ap %-40s # %s\n", $NF, s); - }' - -if not - hget $wire/sns-ap-^$1^.story | - htmlfmt | - sed ' - 1,/^AP Top News$/d - /^\* __$/,$d - /^Subscribe to Newsday home delivery/,$d - ' |