query: Two lines are removed with sed instead of one, why?
positive_passages.docid: 155994
positive_passages.text: shell: keep trailing newlines ('\n') in command substitution
negative_passages.docid: 85777
negative_passages.text: How do I replace the last occurrence of a character in a string using sed?
negative_passages.docid: 54837
negative_passages.text: How do I use variables in a sed command?
negative_passages.docid: 60726
negative_passages.text: SED: insert text after the last line?
negative_passages.docid: 42244
negative_passages.text: Replace \n by a newline in sed portably
negative_passages.docid: 97474
negative_passages.text: How to have the sed output side by side?
negative_passages.docid: 94529
negative_passages.text: Using 'sed' to find and replace
negative_passages.docid: 11072
negative_passages.text: Can sed replace new line characters?
negative_passages.docid: 68318
negative_passages.text: How can I remove the first line of a text file using bash/sed script?
negative_passages.docid: 146060
negative_passages.text: \1 - what does this sed action mean?
negative_passages.docid: 16113
negative_passages.text: How to stop the tail when sed finds the string?
negative_passages.docid: 4710
negative_passages.text: How to use sed to replace only the first occurrence in a file?
negative_passages.docid: 7907
negative_passages.text: What characters do I need to escape when using sed in a sh script?
negative_passages.docid: 121705
negative_passages.text: What is the purpose of "~" in the command "sed 's~ ~~g'"?
negative_passages.docid: 12642
negative_passages.text: sed command not giving proper output for regular expression used
negative_passages.docid: 52535
negative_passages.text: using sed with ampersand (&)
negative_passages.docid: 76938
negative_passages.text: How to insert a line using sed before a pattern and after a line number?