about summary refs log tree commit diff stats
path: root/unk
diff options
context:
space:
mode:
authorCase Duckworth2021-01-30 15:28:28 -0600
committerCase Duckworth2021-01-30 15:28:28 -0600
commitba91b9d3da4e0ab27c8b648170e02556bd7fb6f1 (patch)
treed752e522c6e22697cfde5cdd3db7bab4c87b8e59 /unk
parentAdd links to repos (diff)
downloadunk-ba91b9d3da4e0ab27c8b648170e02556bd7fb6f1.tar.gz
unk-ba91b9d3da4e0ab27c8b648170e02556bd7fb6f1.zip
Move TM to L; change I/ file names
TM->L saves 3b
changing I/ filenames to include the output extension before the input extension
saves 4 bytes, and it's more flexible: it can output any type of files now.
Diffstat (limited to 'unk')
-rwxr-xr-xunk4
1 files changed, 2 insertions, 2 deletions
diff --git a/unk b/unk index 3c9e749..eee8c1b 100755 --- a/unk +++ b/unk
@@ -1,7 +1,7 @@
1#!/bin/sh -e 1#!/bin/sh -e
2alias c=cat q=test e=echo 2alias 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 L||e '`c $F`'>L
5q -d S&&cp -r S O/ 5q -d S&&cp -r S O/
6X(){ eval "$(e 'c<<ZZ';c "$@";e;e ZZ)";} 6X(){ eval "$(e 'c<<ZZ';c "$@";e;e ZZ)";}
7for F in I/*;do 7for F in I/*;do
@@ -9,5 +9,5 @@ q -f "$F"&& (e $F
9N="${F#I/}" 9N="${F#I/}"
10T(){ sed 1q "$F";} 10T(){ sed 1q "$F";}
11B(){ sed 1d "$F";} 11B(){ sed 1d "$F";}
12X TM>"O/${N%%.*}.htm") 12X L>"O/${N%.*}")
13done 13done