cowsay-blog / cowpost

@ 02b7a67125e83737bd88c641e679ae36ba573d02 | 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;