How to extract an unknown number of file lines between two regex patterns?
-2
votes
1
answer
68
views
For example I have file with many of lines and it has such part
...
pattern1
line1
line2
line3
pattern2
...
how can I extract
line[1-3]
via one-liner command (awk
or something like that)?
Asked by Aleksey
(57 rep)
Jun 3, 2025, 11:47 AM
Last activity: Jun 8, 2025, 06:23 PM
Last activity: Jun 8, 2025, 06:23 PM