diff options
author | Case Duckworth | 2019-06-30 12:50:07 -0500 |
---|---|---|
committer | Case Duckworth | 2019-06-30 12:50:07 -0500 |
commit | 0cdf3e1d6d881e78bed6956c0c7ad286f4c6b79b (patch) | |
tree | 2d14ea4d8903d9494d191d13d299c9e0e8639f22 /shabby | |
download | unk-0cdf3e1d6d881e78bed6956c0c7ad286f4c6b79b.tar.gz unk-0cdf3e1d6d881e78bed6956c0c7ad286f4c6b79b.zip |
Initial commit with lht &shabby
Diffstat (limited to 'shabby')
-rwxr-xr-x | shabby | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/shabby b/shabby new file mode 100755 index 0000000..277d021 --- /dev/null +++ b/shabby | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/bin/sh | ||
2 | T=tmpl | ||
3 | alias c=cat q=test e=echo | ||
4 | rm -rf o;mkdir -p o | ||
5 | q -e $T||e '`<$F`'>$T | ||
6 | q -d st&&cp -r st o/ | ||
7 | x(){ eval "$(e 'c<<Z';c "$@";e;e Z)";} | ||
8 | for F in c/*;do | ||
9 | q -e "$F"&& ( | ||
10 | FN="${F##*/}" | ||
11 | TT="$(head -n1 "$P")" | ||
12 | BD="$(tail -n+2 "$P")" | ||
13 | x $T>"o/$FN") | ||
14 | done | ||