about summary refs log tree commit diff stats
path: root/shabby
blob: 277d0213b151d2c757381be599a00bed71209d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
T=tmpl
alias c=cat q=test e=echo
rm -rf o;mkdir -p o
q -e $T||e '`<$F`'>$T
q -d st&&cp -r st o/
x(){ eval "$(e 'c<<Z';c "$@";e;e Z)";}
for F in c/*;do
q -e "$F"&& (
FN="${F##*/}"
TT="$(head -n1 "$P")"
BD="$(tail -n+2 "$P")"
x $T>"o/$FN")
done