Search Results

Search: Posts Made By: TQ3
72,434
Posted By TQ3
It works as expected!
Thank you very much Franklin52!
72,434
Posted By TQ3
Thank you, Franklin52! It works, but it...
Thank you, Franklin52!

It works, but it extracts only first occurance of /Receipt/, /Canceled/ block with Line13 inside.Receipt
Line13
Line3
Canceled

In my case I have several "blocks"...
72,434
Posted By TQ3
AWK: How to extract text lines between two strings only if the pattern patches
Thanks again Scrutinizer for previous solution, but how to modify it
to get only lines between "Receipt" and "Canceled"
if any line in between contains pattern "Line13"?

Using previous example...
72,434
Posted By TQ3
Thanks a lot! That's exactly what I need. :b:
Thanks a lot!
That's exactly what I need. :b:
72,434
Posted By TQ3
AWK: How to extract text lines between two strings
Hi.

I have a text test1.txt file like:Receipt
Line1
Line2
Line3
End

Receipt
Line4
Line5
Line6
Canceled

Receipt
Line7
Line8
Line9
End
Showing results 1 to 5 of 5

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