sed.1posix -n '/\.ph\(p\|tml\)$/p'
stream editor
-n     Suppress  the  default output (in which each line, after it is examined for editing, is written to
       standard output). Only lines explicitly selected for output are written.
source manpages: sed