Back to task

449 symbols bash
Sat Aug 13 04:47:13 2016 hidefromkgb
g()(rev<<<"$1"|fold -w1)
h()(p=${@: -1};k=(`yes _|head -${#p}`);p=(${k[@]});l=(`g $3`);r=(`g $2`)
for x in ${1//,/ };do n=${x#*:};x=m=${x%:*};k[$x]=$[++j]
while((m>=n));do p[$m]=-;l[$[${#3}?m--:y++]]=${r[$[${#3}?y++:m--]]};done
p[$x]=\/;p[$n]=^;((n<x))&&p[$n]=\\
done;tr -d \ <<<${l[@]}+${p[@]}+${k[@]}+:|rev)
read -d $'\4' s i d o<<<`tr -d \ |cut -d: -f2-`;i=`h $i $s`;e=${i##*+}
sed 's/_*+/\n/g;y/_/ /'<<<From${i%$e}$s`rev<<<oT++$e=++``h $o $e $d`


Leave a comment

Parsed as Markdown

Login to leave a comment