[Linux] Grep multiple gzip files in a directory at once

I'll forget it soon so make a note

Conclusion

 find . -name \*.gz -print0 | xargs -0 zgrep "keyword"

Recommended Posts

[Linux] Grep multiple gzip files in a directory at once
Rsync multiple files at once
Configure a module with multiple files in Django
Convert multiple proto files at once with python
Register multiple self-made styles in Word at once
One-liner to create a large number of test files at once on Linux
To extract the data of a specific column in a specific sheet in multiple Excel files at once and put the data in each column in one row
Upload multiple files in Flask
How to display a specified column of files in Linux (awk)
Use gitlabApi to add members to multiple groups in gitlab at once
Replace the directory name and the file name in the directory together with a Linux command.
Create multiple users with serial numbers at once in Ansible Playbook: Part 2
Create multiple line charts from a data frame at once using Matplotlib
View the full path (absolute path) of a file in a directory in Linux Bash
A command to specify a file with a specific name in a directory with find and mv, cp, or gzip it (linux)
Find files like find on linux in Python
Get out of multiple loops at once
Convert images in multiple folders to different pdfs for each folder at once
Turn multiple lists with a for statement at the same time in Python
How to get a list of files in the same directory with python