query: sed to operate on a range of lines plus a single line
positive_passages.docid: 40166
positive_passages.text: How can I extract a predetermined range of lines from a text file on Unix?
negative_passages.docid: 75129
negative_passages.text: Use & (ampersand) in single line bash loop
negative_passages.docid: 116592
negative_passages.text: Make multiple edits with a single call to sed
negative_passages.docid: 90078
negative_passages.text: Non greedy (reluctant) regex matching in sed?
negative_passages.docid: 94738
negative_passages.text: Non-greedy match with SED regex (emulate perl's .*?)
negative_passages.docid: 124920
negative_passages.text: sed one-liner to delete everything between a pair of brackets?
negative_passages.docid: 117802
negative_passages.text: How to use sed/grep to extract text between two words?
negative_passages.docid: 10652
negative_passages.text: Removal of lines with no more or fewer than 'N' fields?
negative_passages.docid: 57603
negative_passages.text: Using sed to delete a whole line if it contains only specific number
negative_passages.docid: 158532
negative_passages.text: replace a string with sed from specific lines
negative_passages.docid: 102118
negative_passages.text: sed with multiple expression for in-place argument
negative_passages.docid: 100911
negative_passages.text: How to "grep" for line length in a given range?
negative_passages.docid: 76938
negative_passages.text: How to insert a line using sed before a pattern and after a line number?
negative_passages.docid: 52535
negative_passages.text: using sed with ampersand (&)
negative_passages.docid: 20005
negative_passages.text: How can I use sed to replace a multi-line string?
negative_passages.docid: 12642
negative_passages.text: sed command not giving proper output for regular expression used
negative_passages.docid: 115046
negative_passages.text: grep one line before the match plus the match