#!/bin/sh if [ $# -ne 2 ] ; then echo "choose -- finish up all format tasks on a chosen list" >&2 echo "Usage: choose LIST OUTPUT-BASENAME" >&2 exit 1 fi ./list2pdf <"$1" >"$2.pdf" pdftotext -layout "$2.pdf" "$2.txt" cp "$1" "$2"