I have >200 .zlib Archives and I want to uncompress them using one command in Linux console. I just cant get the command right. maybe somone can help me:
for z in *.zlib; do; zlib-flate -uncompress < $z > $z ; done
When I run this command every file is empty. I don't really care about the output-filename, so this could be just a counter or a added string for example. Many thanks!
;
afterdo
) empties the files. Don't run it and check the sizes of the files. – Kamil Maciorowski Apr 21 '21 at 20:18zlib-flag -uncompress < $z > $z.unc
(and remove the;
after thedo
). The operation should be against actual compressed files with expected sizes, of course. – KevinO Apr 21 '21 at 20:37<$z >$z
) is handled by the parent shell, beforezlib-flate
even starts.>%z
opens the file for writing, at byte 0. Do all the archives contain the same filenames? Different filenames? – waltinator Apr 21 '21 at 23:37man gzip gunzip
. They'd better tools – waltinator Apr 21 '21 at 23:41zlib-flate -uncompress *.zlib
? – Romeo Ninov Apr 22 '21 at 06:18