print lines matching a pattern
-o, --only-matching
       Print  only  the  matched  (non-empty) parts of a matching line, with each such part on a separate
       output line.
-P, --perl-regexp
       Interpret PATTERN as a Perl regular expression (PCRE, see below).  This is highly experimental and
       grep -P may warn of unimplemented features.
source manpages: grep