Linux: grep only words that like search pattern

Below commandline searches “PS…” pattern in a document.

grep -oh "\w*PS\w*" * somedoc.txt

Resource: http://stackoverflow.com/questions/1546711/can-grep-show-only-words-that-match-search-pattern

Yorum yaz

0 Yorumlar.

Yorum Yap


Not - Bunları KullanabilirsinizHTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>