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.
This commit is contained in:
Case Duckworth 2021-01-30 15:28:28 -06:00
parent ff3293ed6f
commit ba91b9d3da
7 changed files with 2 additions and 2 deletions

View File

View File

@ -1,7 +1,7 @@
#!/bin/sh -e
alias c=cat q=test e=echo
rm -rf O;mkdir -p O
q -f TM||e '`<$F`'>TM
q -f L||e '`c $F`'>L
q -d S&&cp -r S O/
X(){ eval "$(e 'c<<ZZ';c "$@";e;e ZZ)";}
for F in I/*;do
@ -9,5 +9,5 @@ q -f "$F"&& (e $F
T(){ sed 1q "$F";}
B(){ sed 1d "$F";}
X TM>"O/${N%%.*}.htm")
X L>"O/${N%.*}")