10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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
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
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
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
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
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
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
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