diff options
author | John Ankarström <john@ankarstrom.se> | 2021-01-31 14:14:05 +0000 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-01-31 14:14:05 +0000 |
commit | d325d2226cf55b63037dc62cefb7fa952d770d50 (patch) | |
tree | 9b88c71dc9a286cb8f9a4c0f40d42b7f55de5f38 /summary | |
parent | 01d70ec025ac617b1f74a7c8ccb2ed8bc120ca59 (diff) | |
download | plan9-d325d2226cf55b63037dc62cefb7fa952d770d50.tar.gz |
Bind $home/bin/rc to rc/ instead of ./
Diffstat (limited to 'summary')
-rwxr-xr-x | summary | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/summary b/summary deleted file mode 100755 index b527afd..0000000 --- a/summary +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/rc -e - -flagfmt='o,h,x,a' -if(! ifs=() eval `{aux/getflags $*}){ - aux/usage - exit usage -} -if(~ $#flago$#flagh$#flagx 000){ - flago=1 - flagh=1 -} - -cat $home/notes | awk ' - /^ o / { o = o $0 "\n"; mode = "o"; next } # important - /^ - / { h = h $0 "\n"; mode = "h"; next } # normal - /^ x / { x = x $0 "\n"; mode = "x"; next } # done - /^ / { - if (! ENVIRON["flaga"]) next - if (mode == "o") o = o $0 "\n" - if (mode == "h") h = h $0 "\n" - if (mode == "x") x = x $0 "\n" - next - } - { mode = "" } - END { - if (ENVIRON["flago"]) printf "%s", o - if (ENVIRON["flagh"]) printf "%s", h - if (ENVIRON["flagx"]) printf "%s", x - } -' |