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