Search Results

Search: Posts Made By: joachimshaun
2,787
Posted By joachimshaun
I'm using Solaris 8 and that option is not...
I'm using Solaris 8 and that option is not available with grep
2,787
Posted By joachimshaun
Would like to print 3 lines after a regular expression is found in the logfile
I would like to print 3 lines after a regular expression is found in the logfile. I'm using the following code:
grep -n "$reg_exp" file.txt |while read LINE ;do i=$(echo $LINE |cut -d':' -f1 ) ;sed...
Showing results 1 to 2 of 2

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