Zgrep

From LQWiki
Jump to: navigation, search

zgrep

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

EXAMPLE

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