Search Results

Search: Posts Made By: scazed
42,249
Posted By reborg
Well since there are only 5 minutes you are...
Well since there are only 5 minutes you are interested in:

in bash


for (( i = 5; i >=0; i-- )) ; do
grep $(date +%R -d "-$i min") syslog >> newfile
done
4,726
Posted By RudiC
Please use code tags. Try if egrep...
Please use code tags.
Try
if egrep "[^0](400|401|403|404|405)" file; then echo errors; fi
Showing results 1 to 2 of 2

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