Re: Usage of echo

2000-11-26 Thread Thomas Weinbrenner
Svante Signell <[EMAIL PROTECTED]> wrote: > How to echo the current date and time to a log file? > > echo 'date:' ??? 'time:' ??? > file.log There is no need to use echo. date +"date: %x time: %X" > file.log -- Thomas Weinbrenner

Re: Usage of echo

2000-11-26 Thread sena
On 26/11/2000 at 20:16 +0100, Svante Signell wrote: > How to echo the current date and time to a log file? > > echo 'date:' ??? 'time:' ??? > file.log > $ echo date: $(date +%x) time: $(date +%X) date: 26-11-2000 time: 20:02:07 Is this what you want? Check the date manpage for more options.

Re: Usage of echo

2000-11-26 Thread J.H.M. Dassen \(Ray\)
On Sun, Nov 26, 2000 at 20:16:50 +0100, Svante Signell wrote: > How to echo the current date and time to a log file? > > echo 'date:' ??? 'time:' ??? > file.log echo 'date, time:' `date` > file.log ^^ ^^ regular quotes backquotes HTH, Ray -- ART A friend of mi

Usage of echo

2000-11-26 Thread Svante Signell
How to echo the current date and time to a log file? echo 'date:' ??? 'time:' ??? > file.log