Skip to main content

Thread: grep, print only word that matches pattern


i trying grep print out single word pattern. instance, want grep print out word has $ attached it, instance $zebras. have tried grep -o '$*', suggestions on how achieve this?

quote posted meg23 view post
any word has $ attached it, instance $zebras
if mean literally character "$" in word, need escape special meaning of $ end-of-line character. in case grep \$zebras should work.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] grep, print only word that matches pattern


Ubuntu

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support