#sed /p pattern flag will print lines containing searched pattern -n pitfall sed will print the file contents interlaced with output. -n option will silence the input-output pipe.