Hi,
I have multiple files with name pattern as *.tar.gz, I want to search a standalone string inside it.
a)I want to grep only those records where the pattern "707794" comes alone without any prefix and suffix
b)I want to grep in multiple *.tar.gz . a pattern such that a pattern comes in the 1st column of a tar.gz file
Can anyone please help !
I have multiple files with name pattern as *.tar.gz, I want to search a standalone string inside it.
Code:
zgrep -a 707794 *.tar.gz
Result:
aa.tar.gz: 1|2|7.0707794|a|b|c
ab.tar.gz: 1|2|7.0000000707794|a|b|c
ac.tar.gz: 1|2|986707794|a|b|c
ad.tar.gz: 1|2|007700707794|a|b|c
ae.tar.gz: 1|2|09090707794|a|b|c
b)I want to grep in multiple *.tar.gz . a pattern such that a pattern comes in the 1st column of a tar.gz file
Can anyone please help !