[Charlug] Script Question

Michael Wescott wescott_mike at emc.com
Mon Mar 2 18:39:05 EST 2009


michael at prismbiz.com said:
> I have a script that grep's a file, looking for a date string,
> specifically:

> FILEDATE=`date +"%b  %-d"`

> This command works wonderfully up to the 10th of the month, when I
> have to use:

> FILEDATE=`date +"%b %-d"`  (only 1 space between %b and %-d) 

Why not use this?

	FILEDATE=`date +"%b %_d"`
-- 
	Mike Wescott
	Wescott_Mike at EMC.COM



More information about the CharLUG mailing list