-
Behave more grep-like: In the end, output all hits to STDOUT by concatenating all output files in sorted order. Maybe use a temporary directory for those files and optionally delete them again. (The old behaviour still needs to stay available.)
-
Commandline option to select target directory instead of current working directory, maybe
--target
-
Support
grep
's-r
despitexzgrep
doesn't. -
Support other decompressors like
gzip
,bzip2
,zstd
,lzop
,lzip
,lz4
,rzip
,brotli
,zopfli
,lzma
, etc. (lzma
might just need some suffix handling as IIRC the family ofxz
tools already can handlelzma
as it'sxz
's predecessor.)-
Support working with zutils.
-
Might need some renaming.
pzgrep
is a potential name aspgrep
is already in use for GNU Grep's PCRE grep variant. (Not to confuse withpcregrep
which is a different implementation.) -
Would require some exception handling code what happens if files with the same base file name, but different suffixes exist, e.g.
file.gz
andfile.xz
. Possible solution: Name the output filesfile_gz
andfile_xz
instead of currently justfile
.
-
-
Reimplement the whole thing in Perl. It's getting too complex to be easily maintainable in shell code.
-
Also the verbose output can be made be less awkward then.
-
Open question here: Shall we still use
xargs
or some equivalent in Perl like one of the modules from theParallel::*
hierachy?
-