#!/bin/bash NEWBLOG=$(date -u +%Y-%m-%d-%H%MZ.txt) cd ~/blog if [ -f ~/tmp/blog.tmp ]; then cp ~/tmp/blog.tmp $NEWBLOG fi vi $NEWBLOG $*