Using SED to extract text between 2 markers By LotusshaneyMay 29, 2012May 29, 2012Tech sed -n '/FOO/,/BAR/p' test.txt This will extract all text between place holders FOO and BAR from the text file test.txt