about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xunk (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
2T=tmpl
3alias c=cat q=test e=echo 2alias c=cat q=test e=echo
3e UNK
4rm -rf o;mkdir -p o 4rm -rf o;mkdir -p o
5q -e $T||e '`<$F`'>$T 5q -e tm||e '`<$F`'>tm
6q -d st&&cp -r st o/ 6q -d s&&cp -r s o/
7x(){ eval "$(e 'c<<Z';c "$@";e;e Z)";} 7x(){ eval "$(e 'c<<Z';c "$@";e;e Z)";}
8for F in c/*;do 8for F in c/*;do
9q -e "$F"&& ( 9q -e "$F"&& (
10FN="${F##*/}" 10FN="${F##*/}"
11TT="$(head -n1 "$P")" 11TT="$(head -n1 "$P")"
12BD="$(tail -n+2 "$P")" 12BD="$(tail -n+2 "$P")"
13x $T>"o/$FN") 13x tm>"o/$FN")
14done 14done