zgrep whole word search

hi,

i need to search on say "xyz" on 123.gz file.

i need t see complete word xyz alone not like word containing "abxyzdef" not like word beginning with xyzdefff not even ending aaaaxyz

please advise

zgrep 'xyz' 123.gz not working
LVL 7
gudii9Asked:
Who is Participating?
 
Rgonzo1971Connect With a Mentor Commented:
Hi,

Maybe
zgrep -w 'xyz' 123.gz

Open in new window

Regards
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.