Search Results

Search: Posts Made By: Franklin52
4,225
Posted By Franklin52
As methyl mentioned, there are 2 spaces between...
As methyl mentioned, there are 2 spaces between the month and the day, hence my request to use code tags.

Try this:
todays_date=`tail -1 /var/adm/messages|awk '{print $1 FS FS $2}'`
grep...
4,225
Posted By Franklin52
Can you post the output of: tail -1...
Can you post the output of:
tail -1 /var/adm/messages

Please use code tags.
4,225
Posted By Franklin52
Quote the variable: grep "$todays_date"...
Quote the variable:
grep "$todays_date" /var/adm/messages > syslog.`date +%d%m%y`.log
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 09:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy