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:
parent
ff3293ed6f
commit
ba91b9d3da
4
unk
4
unk
|
@ -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
|
|||
N="${F#I/}"
|
||||
T(){ sed 1q "$F";}
|
||||
B(){ sed 1d "$F";}
|
||||
X TM>"O/${N%%.*}.htm")
|
||||
X L>"O/${N%.*}")
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue