Gzip multiple


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Gzip multiple
# 1  
Old 05-22-2019
Gzip multiple

I have several files on AIX .gzip I need to leave them all in 1 single file as I can do

example

Code:
expla_1.gz
expla_2.gz
expla_3.gz

expected result

Final_4.gz #should contain 1, 2, 3

Last edited by rbatte1; 06-03-2019 at 08:43 AM..
# 2  
Old 05-22-2019
would looking into man tar be helpful?
This User Gave Thanks to vgersh99 For This Post:
# 3  
Old 05-22-2019
I need it with gzip
# 4  
Old 05-22-2019
Have you tried something yourself or perhaps searched the forum for similar topics ?

Are those files present in the directory already compressed or you want to create single compressed archive ?
Looks like they are compressed upfront, but can you confirm.

Regards
Peasant.
# 5  
Old 05-22-2019
Code:
a1379q:/Odbms/sdi/utldir/final->man gzip
Manual entry for gzip not found or not installed.
a1379q:/Odbms/sdi/utldir/final->

--- Post updated at 11:47 AM ---

I need to compress 10 files in 1 alone.

Last edited by rbatte1; 06-03-2019 at 08:43 AM..
# 6  
Old 05-22-2019
Quote:
Originally Posted by tricampeon81
I need it with gzip
You need the literally impossible. gzip does not work that way.

You will have to compromise and use something else. Is tar available on your system?
# 7  
Old 05-22-2019
Quote:
Originally Posted by tricampeon81
a1379q:/Odbms/sdi/utldir/final->man gzip
Manual entry for gzip not found or not installed.
a1379q:/Odbms/sdi/utldir/final->

--- Post updated at 11:47 AM ---

I need to compress 10 files in 1 alone.
As you didn't mention the OS you're under, this is the man gzip of RedHat.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Compress multiple gzip files

Good afternoon friends. I wanted to make a query, how to compress several files and leave them all in 1, for example flat text files: filename_1.csv filename_2.csv filename_3.csv expected result filename_end.gzip = (filename_1.csv filename_2.csv filename_3.csv) please (2 Replies)
Discussion started by: tricampeon81
2 Replies

2. Shell Programming and Scripting

Is better way copy list of multiple files, rename and gzip

Is better way to write the script loop through one by one "Old_File_1: & New_File_1:" to copy 100 files to /staging/test folder then re-name & gzip all those files? I wrote this code below and don't like that much. Thanks I have a control_file under /tmp/test folder like below 100 files and... (10 Replies)
Discussion started by: dotran
10 Replies

3. Shell Programming and Scripting

Gzip

if ;then echo "mrnet greater 5000" gzip /var/log/mrnet.log /var/log/mrnet.log.1.gz fi i'm looking if mrnet.log is bigger then 5000 then compress mrnet.log to mrnet.log.1.gz but it won't compress. (3 Replies)
Discussion started by: Froob
3 Replies

4. UNIX for Advanced & Expert Users

gzip vs pipe gzip: produce different file size

Hi All, I have a random test file: test.txt, size: 146 $ ll test.txt $ 146 test.txt Take 1: $ cat test.txt | gzip > test.txt.gz $ ll test.txt.gz $ 124 test.txt.gz Take 2: $ gzip test.txt $ ll test.txt.gz $ 133 test.txt.gz As you can see, gzipping a file and piping into gzip... (1 Reply)
Discussion started by: hanfresco
1 Replies

5. Shell Programming and Scripting

gzip

Hi, I want to gzip files in loop. for i in `ls *.xml`; do gzip $i; done But i am gettin error like "/usr/bin/ls: Arg list too long" Also please tell me how to do it with while loop and also using find and then exec. (7 Replies)
Discussion started by: tushar_tus
7 Replies

6. Shell Programming and Scripting

Gzip help

Hi Experts!! I was creating a zip file in a server which had zip installed in it. I have another server in which zip is not there and i am instructed to make use of gzip to compress files. I would need your help to know the way to create a gzip file. 1) I do the following to create the zip... (5 Replies)
Discussion started by: ganga.dharan
5 Replies

7. SCO

gzip

ciao a tutti, premesso che sono un principiante di unix, avrei bisogno di gzip/gunzip e SOPRATTUTTO delle istruzioni (ahimè dettagliatissime, come per un bimbo!) per installarlo... grazie mille, ciao (1 Reply)
Discussion started by: mfran2002
1 Replies

8. UNIX for Dummies Questions & Answers

GZIP help, please!

Gurus, My own stupidity (or ignorance...or both) put me in the situation I am in and I need help please: 1-My shell account (OS: HP UX v11) contains several work directories (/docs, /scripts...) 2-Our sysadmin has implemented aggressive disk quotas so I have to compress the files I put here... (2 Replies)
Discussion started by: alan
2 Replies

9. UNIX for Advanced & Expert Users

using gzip

Hi, I am trying to unzip a file that I unmounted onto a unix machine from a cd I had burned in a Windows machine. The file I am trying to unzip is a .tar file... it was originally a .tar.gz file because it was zipped using gzip. I have tried: % gzip -d hpux.tar (where hpux.tar is the file... (2 Replies)
Discussion started by: nattie_h
2 Replies

10. UNIX for Dummies Questions & Answers

gzip, multiple files

Hello Everyone, Here is what I am trying to do. I have four text files, I want to gzip them under unix and mail the zipped file via outlook. I am able to do this easily enough, but using winzip or pkunzip to unzip the file, there is only one file. (In essence, all four files were... (2 Replies)
Discussion started by: smbodnar
2 Replies
Login or Register to Ask a Question