query: Get lines until first matched pattern range
positive_passages.docid: 16787
positive_passages.text: How to select first occurrence between two patterns including them
negative_passages.docid: 63005
negative_passages.text: printing a block of text that matches a pattern
negative_passages.docid: 100478
negative_passages.text: How can I exclude the lines which matche the range patterns in sed?
negative_passages.docid: 57658
negative_passages.text: Sample out one element from each row of file until k
negative_passages.docid: 80516
negative_passages.text: Return previous line of all matches
negative_passages.docid: 80204
negative_passages.text: How can I get a specific line from a file?
negative_passages.docid: 107175
negative_passages.text: How to print matched regex pattern using awk?
negative_passages.docid: 22740
negative_passages.text: Delete the nth line from a matched string (which only occurs once in the file)
negative_passages.docid: 26517
negative_passages.text: Is there a tool to get the lines in one file that are not in another?
negative_passages.docid: 76081
negative_passages.text: Iterate over the lines of a string
negative_passages.docid: 53694
negative_passages.text: How to read first and last line from cat output?
negative_passages.docid: 4941
negative_passages.text: Delete range of lines above pattern with sed (or awk)
negative_passages.docid: 35989
negative_passages.text: Match a pattern only when NOT preceded or followed by another pattern
negative_passages.docid: 117829
negative_passages.text: Extract random sample of N lines based on pattern
negative_passages.docid: 26738
negative_passages.text: listing files with pattern with starting and ending
negative_passages.docid: 61570
negative_passages.text: Get last n lines of a file, similar to tail
negative_passages.docid: 147579
negative_passages.text: Split line into key-value pairs based on first string