diff options
-rwxr-xr-x | unk (renamed from shabby) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shabby b/unk index 277d021..cf982a7 100755 --- a/shabby +++ b/unk | |||
@@ -1,14 +1,14 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | T=tmpl | ||
3 | alias c=cat q=test e=echo | 2 | alias c=cat q=test e=echo |
3 | e UNK | ||
4 | rm -rf o;mkdir -p o | 4 | rm -rf o;mkdir -p o |
5 | q -e $T||e '`<$F`'>$T | 5 | q -e tm||e '`<$F`'>tm |
6 | q -d st&&cp -r st o/ | 6 | q -d s&&cp -r s o/ |
7 | x(){ eval "$(e 'c<<Z';c "$@";e;e Z)";} | 7 | x(){ eval "$(e 'c<<Z';c "$@";e;e Z)";} |
8 | for F in c/*;do | 8 | for F in c/*;do |
9 | q -e "$F"&& ( | 9 | q -e "$F"&& ( |
10 | FN="${F##*/}" | 10 | FN="${F##*/}" |
11 | TT="$(head -n1 "$P")" | 11 | TT="$(head -n1 "$P")" |
12 | BD="$(tail -n+2 "$P")" | 12 | BD="$(tail -n+2 "$P")" |
13 | x $T>"o/$FN") | 13 | x tm>"o/$FN") |
14 | done | 14 | done |