Search Results

Search: Posts Made By: rosslm
1,686
Posted By rosslm
Thanks for reply, I tried your suggestion ...
Thanks for reply, I tried your suggestion

grep -E 'x|y' xyz.log

I am still only getting 'x' printed, no 'y'

---------- Post updated at 07:57 AM ---------- Previous update was at 07:41 AM...
1,686
Posted By rosslm
Print selected lines from file in order
I need to extract selected lines from a log file, I can use grep to pull one line matching 'x' or matching 'y', how can I run through the log printing both matching lines in order top to bottom.
...
Showing results 1 to 2 of 2

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