[lug] bash script newbie

Jason Davis jd_480 at hotmail.com
Tue Oct 30 10:59:11 MST 2001


so im trying to rename a file with the current date
hers my go at it ...doesnt work..

#! /bin/bash
NAME=$(date +"%x %r %Z")
echo $NAME
cat /home/taproot/htmtest > /home/taproot/$NAME


please help
thanks
jd


<br><br><br>  Jason Davis
   jd_480 at hotmail.com

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




More information about the LUG mailing list