Questions tagged [zgrep]

zgrep is a linux command that searches gzipped files for a regular expression. Use this tag for questions related to the zgrep command.

zgrep is a linux command for performing grep on gzip compressed files. In other words you can use zgrep to search compressed files for a regular expression.

32 questions
0
votes
1 answer

subprocess.check_output(), zgrep, and match limit

Context: I'm trying to find a github repository of a python package. To do that, I'm zgrep'ping package archive for github urls. And it works fine until I limit output by 1 result: # works, returns a lot of results subprocess.check_output(["zgrep",…
Marat
  • 15,215
  • 2
  • 39
  • 48
-1
votes
2 answers

How to zgrep an UPPERCASE as a lowercase without pipes / variables / echo

How to zgrep an UPPERCASE PATTERN as it was a lowercase, e.x.: zgrep 'MYPATTERN' *.gz matching: mypattern Without: pipes, echoes, files or variables. E.x.: s="Hello World!" echo $s # Hello World! a=${s,,} zgrep "$a" *.gz NOR echo 'MYPATTERN' |…
Rodrigo Gurgel
  • 1,696
  • 2
  • 15
  • 32
1 2
3