Guest_imported
New member
- Jan 1, 1970
- 0
I want to grep a log file for todays date without the time etc
ie:: date +"%a %b %d"
so I want to grep for Fri Feb 08
having problems with this.tried assigning this to a variable
ie ::set datevar=`date +"%a %b %m"`and tried to grep for that variable but grep only reads the first part ie FRI and not the whole string as one.
Any hel pappreciated
ie:: date +"%a %b %d"
so I want to grep for Fri Feb 08
having problems with this.tried assigning this to a variable
ie ::set datevar=`date +"%a %b %m"`and tried to grep for that variable but grep only reads the first part ie FRI and not the whole string as one.
Any hel pappreciated