fi
#TIMESTAMP=`date`
-TIMESTAMP=`date +"%F %k:%M:%S"`
+TIMESTAMP=`date +"%F %H:%M %Z"`
# export to a different note file
if [ "$1" == "-f" ]; then
# create the time-stamped note
cat << END_NOTE_TEXT >> $NOTES_FILE
-$TIMESTAMP
-----------------------------------------
+== $TIMESTAMP
+
END_NOTE_TEXT
#text is from stdin
# edit the note if no (remaining) arguments
if [ $# -eq 0 ]; then
- $EDITOR + $NOTES_FILE
+ $EDITOR +"$" "$NOTES_FILE"
fi