Similar to “stdin2TextEdit.sh”, this script “cat”s the file specified on the command line. (If none is given then stdin will be opened.)
#! /bin/sh TMP=/tmp/`basename $0`_`date +'%Y-%m-%d_%H-%M-%S'`_$$.txt cat $1 > ${TMP} open ${TMP}
Similar to “stdin2TextEdit.sh”, this script “cat”s the file specified on the command line. (If none is given then stdin will be opened.)
#! /bin/sh TMP=/tmp/`basename $0`_`date +'%Y-%m-%d_%H-%M-%S'`_$$.txt cat $1 > ${TMP} open ${TMP}