The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
49 views

List contents of zip archive via stdin

Is there a "magic" way to list the contents of a Zip archive piped in via stdin? For instance: $ some_process_sending_files_in_one_zip_stream_to_stdout | gunzip -l - ... listing of files ... When ...
1
vote
2answers
786 views

Gunzip directory of files and pipe output Linux

I'd like to gunzip a directory full of compressed files and pipe the output (preserving the original files) to a different directory. I need the original names to stay the same. So... gunzip -c *.gz ...
5
votes
2answers
923 views

How to use GNU parallel with gunzip

I have a directory full of .gz, I want to expand each archive in parallel with GNU parallel. However I did not achieve anything. I tried parallel 'gunzip {}' ::: `ls *.gz` parallel gunzip `ls *.gz` ...
-2
votes
4answers
112 views

“.gz” extension somehow appended itself to EVERY FILE on my site… how do I undo it?

Somehow I accidentally appended the extension .gz to ALL files in my entire website directory. How do I undo this? I need them to retain their original file extensions (EG: picture.jpg.gz -> ...
0
votes
2answers
801 views

How to batch decompress files with gunzip and keep originals?

I have several txt.gz files in a directory that I would like to decompress all in one go to a bunch of .txt files without getting rid of the originals. BUT I don't want them in standard output - as ...
0
votes
1answer
967 views

zcat or gunzip: proceed on error

When trying to gunzip or zcat a large number of gzip files, zcat/gunzip will terminate with this error: gzip: <gzip-file>: unexpected end of file Is there any way I can get gunzip or zcat to ...
1
vote
2answers
679 views

gunzip multiple files and concatenate in parallel?

Is it possible to gunzip multiple files and concatenate them into one big file, but do it in parallel given a multicore machine? For example, right now I do: gunzip -c file1.gz > final gunzip -c ...
16
votes
2answers
8k views

Pipe gunzip and mysql to gunzip a dump and import it

I have a .gz sql dump file (example: foo.sql.gz) that i want import in my database with the classic mysql command. gunzip -c foo.sql.gz > foo.sql mysql -uroot -ppassword foo < foo.sql foo is ...
1
vote
1answer
923 views

Gunzip redirection: “No such file or directory”

When I issue the following command: gunzip -c /disk1/hadoop/gunzip_tmp/in/part-00006.gz>>/disk1/hadoop/gunzip_tmp/outfile.000 I get the following stderr: gunzip: ...
2
votes
2answers
1k views

can gunzip work on file without a suffix?

Is there a way to gunzip a file that isn't ending with a .zip even though I know for a fact the file is indeed a zip?
3
votes
1answer
172 views

gunzip -c equivalent for tar.gz files?

What is the equivalent of gunzip -c to pipe the content of a bunch of tar.gz files without having to permanently "tar xzf" them and "tar czf" them back? Something like: tar xzf "-c" *.tar.gz | xargs ...
0
votes
0answers
238 views

Auto-untar/gunzip a multilayer tarball in Win XP/7

I review a disgusting ball of knowledge each day that I'd like to think up a way to organize more automatically. The structure looks like this - Parenthesis show the number of files of that type in ...
5
votes
6answers
7k views

Is it possible to gunzip multiple files to a specific directory without deleting the original gz files?

I know this can be done for single files, e.g. gunzip -c my.gz > somedir/my Can it be done for multiple files? [UPDATE] I have a directory with a large number of .gz files (not .tar.gz), and I ...
4
votes
2answers
7k views

How to extract a single folder and its subfolders from a “tarball” (.tar.gz)

I need to extract a single folder and its subfolders from a tarball (.tar.gz) on a CentOS server. I haven't the slightest clue how to do it using an SSH terminal. I tried: gunzip -c ...
21
votes
2answers
40k views

How do I gunzip to a different destination directory?

How do I gunzip to a destination directory other than the current one? This did not work: gunzip *.gz /putthemhere/
1
vote
3answers
2k views

How to decompress the *.TGZ file without changing the orginal file? [duplicate]

Possible Duplicate: How do you gunzip a file and keep the .gz file ? I decompress the file using following command: gunzip -f test.TGZ This gave me test.tar file but I lost the test.TGZ ...
4
votes
3answers
39k views

How do I gunzip a directory?

I have a gzipped directory called "new" which contains other directories and files, that I compressed in the following way gzip -cvr --no-name /path-to-directory/new > new.gz I have copied this ...
101
votes
6answers
80k views

How do you gunzip a file and keep the .gz file?

The default behavior of gunzip is to delete the .gz file after it decompresses. How do I prevent it from deleting the file?? If this functionality is not included then is there an alternative ...