Hi,
I need to grep the contents of $SFILE for the month and day.
EG: Dec 16
the example below does not work because it believes %d is a new command. I am not sure how I can overcome this, so I am asking for a little guidance.
/usr/bin/cat $SFILE |grep `date +%b %d` >> $LFILE
output to $FILE, I want:
Dec 16 hkhhljljgiuygkg
Dec 16 kjhgjhgufgugugk
As of now I can only get it to grep on 'Dec', which really is not good enough.
thanks
David
I need to grep the contents of $SFILE for the month and day.
EG: Dec 16
the example below does not work because it believes %d is a new command. I am not sure how I can overcome this, so I am asking for a little guidance.
/usr/bin/cat $SFILE |grep `date +%b %d` >> $LFILE
output to $FILE, I want:
Dec 16 hkhhljljgiuygkg
Dec 16 kjhgjhgufgugugk
As of now I can only get it to grep on 'Dec', which really is not good enough.
thanks
David