Zgrep

From LQWiki
Jump to navigation Jump to search

zgrep

zgrep works just like grep, but on possibly compressed or gzipped files.

EXAMPLE

$ zgrep -E 's[d|r|h]f' *.txt *.gz