Tony van der Hoff wrote:
> Roy Schestowitz <newsgroups@schestowitz.com> wrote in message
> <dbb970$1nip$1@godfrey.mcc.ac.uk>
>
>> Excuse me for a beginner's question. Does somebody know how to avoid the
>> newline which strictly follows 'date'? I have looked at the man page, but
>> there is only 'date +%n' which can add extra newlines, yet nothing which
>> prevents that newline at the end of the output from appearing. I would
> like
>> to use something efficient (not a scanner which removes the closing
>> newline) because the command will be called every 2 minutes or so.
>>
>
> echo -n `date`
Thanks very much, Tony. I found out about 'echo -n' just around the time you
posted the reply. Thank you for completing the puzzle by suggesting the
full solution, which I will definitely use.
Roy
|
|