Compress multiple gzip files


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Compress multiple gzip files
# 1  
Old 05-26-2019
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:
Code:
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  
Old 05-26-2019
This is the third time you have asked this and you have been steered in the right direction - twice:

.csv ---> gzip

AND HERE:

Gzip multiple
This one is the current working thread, take note!
This User Gave Thanks to wisecracker For This Post:
# 3  
Old 05-27-2019
Moderator's Comments:
Mod Comment And, for the second time, this duplicate thread is closed.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compress Files in Multiple Directories

I would like to compress the files in multiple directories. For some reason, it only compress the first directory (/Sanbox/logs1) but not the rest of the other directories ("/Sanbox/logs2" "/Sanbox/logs3" "/Sanbox/logs4" ). Any help would be appreciated. Here's my code: #!/bin/bash... (1 Reply)
Discussion started by: Loc
1 Replies

2. Shell Programming and Scripting

what is the difference between commands compress, pack and gzip

Are the above commands does the same job ? same functionaliy ? If so, why do we have three utilities for the same functinality. (1 Reply)
Discussion started by: frintocf
1 Replies

3. UNIX for Advanced & Expert Users

limitation of gzip and compress

Hi, in AIX 6.1 what is the limite of gzip and compress ? I mean what can be at most the size of the file to compress ? Thank you. (1 Reply)
Discussion started by: big123456
1 Replies

4. Shell Programming and Scripting

Compress files as per timestamp in multiple subdirectories

I'd really appreciate if anyone could assist me with this code A directory with multiple subdirectories has multiple files which are timestamp'ed. We need to - compress files as per timestamp - save compressed file/s in the respective folder - delete the source files ============... (2 Replies)
Discussion started by: sreewin7
2 Replies

5. UNIX for Dummies Questions & Answers

gzip instead of compress

Duplicate threads merged jmc Hi, I have a script wherein I want to use gzip instead of compress. # cat dly_appsfiles_bkp.ksh # # dly_appsfiles_bkp.ksh # date_stamp=`date +%m%d%y` base_dir=/u05/gld1 sub_dir=apps bkp_dir=/u00/backup/GLD1/APPS... (5 Replies)
Discussion started by: narayanv
5 Replies

6. UNIX for Dummies Questions & Answers

Compress multiple files at one go

I want to compress all the files which are three years older ..I have thousands of files... 1) This doesnt work find ./ -type f -mtime +1176 -print | xargs -n1 -i tar -cvf {} Errror tar: Missing filenames Probably because of - find ./ -type f -mtime -1 -print returns - " ./temp.txt"... (6 Replies)
Discussion started by: kedar.mehta
6 Replies

7. UNIX for Dummies Questions & Answers

difference between 'compress' and 'gzip'

hi can i know the diff between these 2 commands in terms of data compressed (3 Replies)
Discussion started by: anandapani
3 Replies

8. Shell Programming and Scripting

Compress multiple files

Hi Friends, Can anyone help me out with compressing multiple files. I have multiple files in directory , I have to compress these into a single file, I tried using gzip -r outfile.gz file1 file2 file3. It is not working Thanks in advance for your help S :) (5 Replies)
Discussion started by: sbasetty
5 Replies

9. 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

10. UNIX for Dummies Questions & Answers

compress --> gzip

I have hundreds of ".Z" files that I need to uncompress and gzip. I'm not sure how to handle this in a 'for loop'. I can get the uncompress part, but I'm not sure how to strip the .Z off the filename for the gzip step. Is it possible to pipe the output of uncompress to gzip? (2 Replies)
Discussion started by: 98_1LE
2 Replies
Login or Register to Ask a Question