cowsay-blog / cowpost

@ f7e2be4be7fc284e6a501d2a83b4889e7d923add | 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;