Search Results

Search: Posts Made By: linuxuser999
2,597
Posted By RudiC
None of the dates nor even times in your data...
None of the dates nor even times in your data samples will match the regexes you posted. Assuming all records will be terminated by a } , try (with your sample data in post #1)

sed -n...
2,597
Posted By nezabudka
sed ':1;N;/\*/!b1;/FIRST\|THIRD/!d' logfile ...
sed ':1;N;/\*/!b1;/FIRST\|THIRD/!d' logfile

--- Post updated at 17:11 ---

sed -n '/2019\/10\/16/{:1;N;/}/!b1;/FIRST\|THIRD/p}' logfile
Showing results 1 to 2 of 2

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