Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!usc!elroy.jpl.nasa.gov!sdd.hp.com!spool.mu.edu!uunet!shelby!portia.stanford.edu!baroque.Stanford.EDU!jim From: jim@baroque.Stanford.EDU (James Helman) Newsgroups: comp.sys.sgi Subject: Re: awk vs echo Message-ID: Date: 11 Feb 91 17:58:48 GMT References: <9102111145.aa01900@VGR.BRL.MIL> Sender: news@portia.Stanford.EDU (Mr News) Organization: Stanford University Lines: 11 In-Reply-To: SOFPJF@VM.UOGUELPH.CA's message of 11 Feb 91 16:23:04 GMT The problem is that date(1) prints out a space separated list which breaks the argument to awk. If you eliminate the spaces, it works, e.g.: awk '{ print "'`date | sed -e s/\ /:/g`': " $0}' Jim Helman Department of Applied Physics Durand 012 Stanford University FAX: (415) 725-3377 (jim@KAOS.stanford.edu) Work: (415) 723-9127