#!/bin/sh
#
#  nicedate.sh, a bash script by duus made on Sat Jul 21 11:20:11 EDT 2007 
#  lives in: `unixscriptsfolder`/system/nicedate.sh 
#  run binedit nicedate to edit.  see binedit help for more information
#
_SCRIPT_NAME=nicedate             
_SCRIPT_LOCATION=~/bin/             
#             
if [ "$1" = "version" -o "$1" = "help" ]                
	then                                 
	echo " nicedate by duus"          
	echo " `unixscriptsfolder`/system/nicedate.sh "
	echo " writes the date nicely.  <nicedate n> skips the final carriage return."
	echo " <nicedate sp> makes the date without spaces"
	else                                 
# --- normal script here --- 
_date=`date +"%h %d, %Y"`
if [ "$1" = "n" ] 
	then         
 	echo $_date | perl -i -pe 's/\n//g'
elif [ "$1" = "sp" ]
	then
	echo -n `date +"_y:%y_m:%m_d:%d"` | perl -i -pe 's/\n//g'
	#_y:07_m:08_d:14
	else
	echo $_date
fi
# -------------------------- 
# 
fi # end 'version' 
# 
# end nicedate, `unixscriptsfolder`/system/nicedate.sh

