#!/bin/sh

UNPUBLISHED="$HOME/docs/blog"
PUBLISHED="$HOME/docs/blog/pub"
HOST='example.com'
HOSTDIR='/path/to/blog/dir'
SPELL='ispell'

for i in `ls $UNPUBLISHED/*txt`; do
    $SPELL $i || exit;
    scp -p $i $HOST:$HOSTDIR || exit;
    mv $i $PUBLISHED;
done;
