[NTLUG:Discuss] How do I set Date in Filename in Bash
David Camm
dcamm at advwebsys.com
Mon Feb 16 09:37:45 CST 2004
date +'%m.%d.%y'
david camm
advanced web systems
Dennis wrote:
> Bash tuts show me the trick of getting date parts from date, thus:
>
> MYDATE=`date +%b%d%y`
> echo "Datestring:" $MYDATE
>
> I read man date, and see the various flags. I need to name directories
> like: 02.16.04, but the closest I see using date's flags is:
>
> MYDATE=`date +%D` which give 02/16/04.
>
> How do I change the '/' to '.'?
>
> TIA
>
> /dennis
>
>
>
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list