#!/bin/sh
# Author: Dean Wilson
# Created On: 2004/09/19
# Version: 0.1
# Last Updated:
# Changes: 

# this script grabs the timestamp of a file, allows you to edit it with
# the editor specified (vim) and then sets the timestamp back to its
# original value.

timestamp=$(ls -la --time-style=+'%Y%m%d%H%M' $1 | awk '{ print $6 }')
vim $1
touch -t $timestamp $1
