Linux expert Please help me with zgrep

inyournameinyourname Member Posts: 6 ■□□□□□□□□□
I am searching for a specific tunnel name from the big log.

I have to search these 3 keywords.

ABC-123
ABC-123-456
ABC-123-789

zgrep 'ABC-123' /var/directory/log/2016-12-01/logfilename.log > /home/mydirectory/ABC-123.txt

The problem is since ABC-123 overlaps with other files.....I can't get only ABC-123.
I would get the data from ABC-123-456 as well.

How can i distinguish ABC-123 from other 2 files?

Comments

Sign In or Register to comment.