dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

md2cat (241B)


      1 #!/bin/sh
      2 
      3 usage() {
      4 	printf 'usage: %s FILE ...\n' "${0##*/}" >&2
      5 	exit 1
      6 }
      7 
      8 [ $# -lt 1 ] && usage
      9 
     10 o="$PWD"
     11 for f in "$@"; do
     12 	d="$(mktemp -d)"
     13 	cd "$d"
     14 	md2point < "${o}/${f}"
     15 	catpoint *.txt
     16 	rm -f "${d}/"*.txt
     17 	rmdir "$d"
     18 	cd "$o"
     19 done