bash avoid keep output as history code example Example: show output after a keyword in shell script in a file sed -n -e '/TERMINATE/,$p'