awk vs echo

James Helman jim at baroque.Stanford.EDU
Tue Feb 12 04:58:48 AEST 1991


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 at KAOS.stanford.edu) 			Work: (415) 723-9127



More information about the Comp.sys.sgi mailing list