about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2019-07-01 16:12:05 -0500
committerCase Duckworth2019-07-01 16:12:05 -0500
commit6791fa51f646a9e796c08e4357d7ce142d34a716 (patch)
tree9fd9c9cc33921dff3e84e3fdb5bd21e5e76bd487
parentFix output file format (diff)
downloadunk-6791fa51f646a9e796c08e4357d7ce142d34a716.tar.gz
unk-6791fa51f646a9e796c08e4357d7ce142d34a716.zip
Change T and B to functions
-rw-r--r--[-rwxr-xr-x]unk10
1 files changed, 5 insertions, 5 deletions
diff --git a/unk b/unk index 57bf278..2cf2164 100755..100644 --- a/unk +++ b/unk
@@ -3,11 +3,11 @@ alias c=cat q=test e=echo
3rm -rf O;mkdir -p O 3rm -rf O;mkdir -p O
4q -f TM||e '`<$F`'>TM 4q -f TM||e '`<$F`'>TM
5q -d S&&cp -r S O/ 5q -d S&&cp -r S O/
6X(){ eval "$(e 'c<<Z';c "$@";e;e Z)";} 6X(){ eval "$(e 'c<<ZZ';c "$@";e;e ZZ)";}
7for F in I/*;do 7for F in I/*;do
8q -f "$F"&& (e $F 8q -f "$F"&& (e $F
9N="${F##*/}" 9N="${F#I/}"
10T="$(sed 1q "$F")" 10T(){ sed 1q "$F";}
11B="$(sed 1d "$F")" 11B(){ sed 1d "$F";}
12X TM>"O/${N%%.*}.html") 12X TM>"O/${N%%.*}.htm")
13done 13done