Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: No Newline after 'date'

  • Subject: Re: No Newline after 'date'
  • From: Roy Schestowitz <newsgroups@schestowitz.com>
  • Date: Sat, 16 Jul 2005 17:06:13 +0100
  • Newsgroups: uk.comp.os.linux
  • Organization: schestowitz.com / Manchester University
  • References: <dbb970$1nip$1@godfrey.mcc.ac.uk> <gemini.ijq98f00p1x4w03qn.tony@nospam.vanderhoff.org>
  • Reply-to: newsgroups@schestowitz.com
  • User-agent: KNode/0.7.2
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

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index