Computing.Net > Forums > Unix > gzip multiple files into one

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

gzip multiple files into one

Reply to Message Icon

Original Message
Name: anilcgowda
Date: September 1, 2005 at 15:30:55 Pacific
Subject: gzip multiple files into one
OS: UNIX
CPU/Ram: 1GB
Comment:

Hi,

How to gzip multiple files into one .gz file.
Ex: I have 3 files - a1.txt a2.txt a3.txt
I want to zip them into aall.gz and later when I unzip, it should unzip into a1.txt, a2.txt a3.txt.

I tried gzip -c a1.txt a2.txt a3.txt > aall.gz. This concatenates the files. But, I want the original files separately when I unzip.

Thanks,
Anil


Report Offensive Message For Removal


Response Number 1
Name: narsman
Date: September 1, 2005 at 17:40:09 Pacific
Reply:

Did you try tarring the files then gzip it?


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home



Results for: gzip multiple files into one

break large file into multiple file
    Summary: I'd like to have a script that breaks a large file into multiple files. Basicaly, the script reads a large file and looking for a line "PJL EOJ", if line found, the counter will count it as 1, so when...
www.computing.net/answers/unix/break-large-file-into-multiple-file/5410.html

Check Multiple File Exists
    Summary: Hi, I want to use Shell Script to check multiple file exists and then execute other tasks, I use the following compound condition, but neither succeed. if [ -e check_fin_bbb.complete ] && [ -e fin_bbb...
www.computing.net/answers/unix/check-multiple-file-exists/4775.html

Awk from two files into one file
    Summary: Hi! I’m trying to load two files in to one file File-1 said: A1 = 20 A2 = 10 A3 = 30 A4 = 15 A5 = 60 File-2 said: A1 = iface-1 A2 = iface-2 A3 = iface-3 A4 = iface-4 A5 = iface-5 And I need a File-3 ...
www.computing.net/answers/unix/awk-from-two-files-into-one-file/6194.html








Which MP3 player do you have?

iPod/iPhone
Zune
Something Else
None


View Results

Poll Finishes Today.
Discuss in The Lounge
Poll History






Data Recovery Software