about summary refs log tree commit diff stats
path: root/unk
diff options
context:
space:
mode:
authorCase Duckworth2019-06-30 14:42:05 -0500
committerCase Duckworth2019-06-30 14:42:05 -0500
commitf21affe233d54d5679506c8dc905426ddfd5184e (patch)
treeecde983c3596f4c96628d071f8e193916654e92a /unk
parentInitial commit with lht &shabby (diff)
downloadunk-f21affe233d54d5679506c8dc905426ddfd5184e.tar.gz
unk-f21affe233d54d5679506c8dc905426ddfd5184e.zip
Rename
Diffstat (limited to 'unk')
-rwxr-xr-xunk14
1 files changed, 14 insertions, 0 deletions
diff --git a/unk b/unk new file mode 100755 index 0000000..cf982a7 --- /dev/null +++ b/unk
@@ -0,0 +1,14 @@
1#!/bin/sh
2alias c=cat q=test e=echo
3e UNK
4rm -rf o;mkdir -p o
5q -e tm||e '`<$F`'>tm
6q -d s&&cp -r s o/
7x(){ eval "$(e 'c<<Z';c "$@";e;e Z)";}
8for F in c/*;do
9q -e "$F"&& (
10FN="${F##*/}"
11TT="$(head -n1 "$P")"
12BD="$(tail -n+2 "$P")"
13x tm>"o/$FN")
14done