@ dab0a6a81ca3f771e41e2caa0cee029eb90bb60a | history
#!/bin/bash
HERE=$(pwd)
POSTPATH="$HERE/posts"
COWPOSTPATH="$HERE/cowposts"
INFILE="${@: -1}"
(date "+%Y-%m-%d %H:%M:%S" && cowsay "${@:1:($#-1)}" < $INFILE) > "$COWPOSTPATH/$INFILE.cowpost";
mv $INFILE $POSTPATH;