gunzip unknown suffix -- ignored
hi, i have about 100 gzipped files that are named like vendor-837-12-04-20-14:44:37.253.
i am trying to gunzip all of them but i keep getting errors like: gunzip: vendor-837-12-04-20-14:44:37.253: unknown suffix -- ignored when i 'cp vendor-837-12-04-20-14:44:37.253 vendor-837-12-04-20-14:44:37.253.gz; gunzip vendor-837-12-04-20-14:44:37.253.gz' it behaves correctly but i'll get a hand-cramp from doing that more than 100 times. since unix uses the magic number to know the file-type, isnt the filename irrelevant ? thanks, |
Hello
My advise is to escape the - and the : characters, so your instruction end like: Code:
gunzip [OPTIONS] vendor\-837\-12\-04\-20\-14\:44\:37\.253 Regards |
^ thanks for the advice but i am having the same problem like so:
gunzip: vendor.837: unknown suffix -- ignored but gunzip vendor.837.gz works perfectly. how to make it so gunzip will take any filename (seems kinda' windows-like to expect an extension on every filename) ? |
try to use
zcat Quote:
|
...or use "--force"
|
Quote:
(hans shot first ;)) |
Quote:
Code:
zcat vendor.837 |
ok, sorry now i get the problem
look in the man of your gunzip for the -S option, if it exist try the command: Code:
gunzip -S "" vendor-837-12-04-20-14:44:37.253 |
Quote:
gunzip: vendor-837-12-04-20-14:44:37.253: cannot decompress onto itself seems like some limitation of gunzip that i will need to handle in some sort of for loop. thanks alot. edit: i got creative and hacked something together that worx: Code:
zgrep -E "(.|^$)" vendor-837-12-04-20-14:44:37.253 > vendor-837-12-04-20-14:44:37.253.txt Code:
cat vendor-837-12-04-20-14:44:37.253 | gunzip > vendor-837-12-04-20-14:44:37.253.txt |
All times are GMT -5. The time now is 07:08 AM. |