Closed schwidom closed 6 months ago
Not sure what you mean or want. Option -z
is limited to one level of archives and compressed files. To search nested archives specify --zmax=2
. If you want to search a string in a raw binary .gz file then don't use option -z
. If you want to search a .gz but not a .tgz then exclude .tgz from searching with -O^tgz
or -g"^*.tgz"
.
Ok, I miss --zmax in my version of ugrep.
See also #359 which asks a similar question with my answer to use xargs
.
I found no other option to do that. -z makes too much. It could be split in --zfile and --zarchive to have a clear distinction. And just in case -- what if an an archive contains more zipped files and archives? Then a recursion delimiter woud also be interesting.
Thanks in advance. Frank Schwidom