Random shell snippets

Ʌ: Tech

Convert all dokuwiki to markdown (with pandoc)

for file in (find _txt/ -type f); pandoc -t commonmark_x -f dokuwiki -o (echo $file | sed -e 's%^_txt/%%g'|sed -e 's/\.txt$/\.md/g') $file;end

WITNESS SYMMETRY

sed -e 's/[^\w]//g' /dev/urandom | awk '{ z = '(tput cols)' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }'