[COLUG] Append Date and Time

Richard Mancusi vrman49 at gmail.com
Thu Oct 14 18:11:18 EDT 2004


Thanks everyone.  Too much of a rush and messed
up the backtick.  I know better - if you are looking for
me I will be hiding in the corner embarrassed.

Rich



On Thu, 14 Oct 2004 18:00:22 -0400, Stephen J. Smith <sjs at khadrin.com> wrote:
> On Thu, 2004-10-14 at 17:32, Richard Mancusi wrote:
> > How do I append the date and time to a file name?
> >
> > I have:
> > /program_location/xgrabsc -s 5 -ppm -o /output_location/scr_shot.ppm
> 
> Backticks, or $() in bash.  For example:
> 
> /program_location/xgrabsc -s 5 -ppm -o /output_location/scr_shot`date`.ppm
> 
> "man date" to learn how to get precisely what you want.
> 
> --
> Stephen J. Smith | sjs at khadrin.com | http://khadrin.com/
> 
> 
> 
> _______________________________________________
> colug1 mailing list colug1 at colug.net
> http://www.colug.net/mailman/listinfo/colug1
>



More information about the colug mailing list