Search Results

Search: Posts Made By: praveen123
3,580
Posted By praveen123
Thanks guys. Unfortunately there is no -A and -B...
Thanks guys. Unfortunately there is no -A and -B option in HP-UX. But I received another response about using awk 'c==2 && /i/{print;exit}/[cf]/{c=c?2:1}c' file, which seems to be a very good option....
3,580
Posted By praveen123
Search for multiple lines in large file
Hi,
I have a requirement to search for a string in a large log file along with few lines before and after the the string. The following script was sufficient to search such an entry.
...
Showing results 1 to 2 of 2

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