about summary refs log tree commit diff stats
path: root/unk
diff options
context:
space:
mode:
authorCase Duckworth2019-06-30 23:46:31 -0500
committerCase Duckworth2019-06-30 23:46:31 -0500
commit1776cac9c78d7e18ea00ccb73b22e86b112be374 (patch)
tree87ab26ee550138eeeb67b8aca2b9a19f4964d246 /unk
parent"Naked" blocks must begin with "<" and end with ">" (diff)
downloadunk-1776cac9c78d7e18ea00ccb73b22e86b112be374.tar.gz
unk-1776cac9c78d7e18ea00ccb73b22e86b112be374.zip
Change names and shorter head/tail
Diffstat (limited to 'unk')
-rwxr-xr-xunk19
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
2alias c=cat q=test e=echo 2alias c=cat q=test e=echo
3e UNK 3rm -rf O;mkdir -p O
4rm -rf o;mkdir -p o 4q -f TM||e '`<$F`'>TM
5q -e tm||e '`<$F`'>tm 5q -d S&&cp -r S O/
6q -d s&&cp -r s o/ 6X(){ eval "$(e 'c<<ZZ';c "$@";e;e ZZ)";}
7x(){ eval "$(e 'c<<Z';c "$@";e;e Z)";} 7for F in I/*;do
8for F in c/*;do 8q -f "$F"&& (e $F
9q -e "$F"&& (
10FN="${F##*/}" 9FN="${F##*/}"
11TT="$(head -n1 "$P")" 10TT="$(sed 1q "$F")"
12BD="$(tail -n+2 "$P")" 11BD="$(sed 1d "$F")"
13x tm>"o/$FN") 12X TM>"O/$FN";e OK)
14done 13done