10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
**BTW- very new to scripting**
I have created a shell script to gzip the public_html files on our website. I have tested this script on another directory on our site and it worked, but when I replaced the directory with the public_html directory it failed.
I am executing this script via a... (7 Replies)
Discussion started by: alblue
2. UNIX for Advanced & Expert Users
I have a random test file: test.txt, size: 146
$ ll test.txt
$ 146 test.txt
$ cat test.txt | gzip > test.txt.gz
$ ll test.txt.gz
$ 124 test.txt.gz
$ 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
3. Shell Programming and Scripting
I have 1000 of files in a folder with the file extension as .csv
In this some of the files are already zipped and its looks like filename.csv.gz
Now i need to zip all the files in the folder to free some disk space. When i give gzip *.csv
It prompts me to overwrite filename.csv.gz... (5 Replies)
Discussion started by: nokiak810
4. Shell Programming and Scripting
I hope every one is fine. I need to ask one question.
I have directory
inside that data there are files like
i want that i will do compress each txt file inside that directory /xx/abcd/data/.
But it will not gzip data... (1 Reply)
Discussion started by: learnbash
5. Shell Programming and Scripting
Hello dear Community,
I have a task to wrtie a script which will gzip not zipped files in a directory and itīs subdirectories. I succeeded in gzippung the directory but not the subdirectories:
#go to the directory where to zip
#Zip unzipped files
for i in `ls | xargs... (2 Replies)
Discussion started by: JamesCarter
6. Shell Programming and Scripting
Hello. I have a scripting query that I am stumped on which I hope you can help with.
Basically, I have a ksh script that calls a process to create n number of binary files. These files have a maximum size of 1Gb. The process can write n number of files at once (parallel operation) based on the... (4 Replies)
Discussion started by: eisenhorn
7. Shell Programming and Scripting
Hi I have one directory as "eAMRLTXFLDS0"...I am supposed to create a
eAMRLTXFLDS0.ofcld.gz using gzip...
Can u plz help me wth the command..
Thanks in advance.. (4 Replies)
Discussion started by: grajesh_955
8. UNIX for Dummies Questions & Answers
Just has a query.
I have been trying to zip and unzip a directory.
I used gzip -c -r <directory> to recursively search the directory and zip it
Now is want to unzip the directory, by
gunzip -r <filename>.gz
The problem is that the unzip creates on file with the contents... (1 Reply)
Discussion started by: jinxor
9. Shell Programming and Scripting
I run Solaris 9. I have a below script which is used for gunzip the thousand files from a directory.
for i in `ls -1`
gunzip -c $i > /path/to/file/$i
In my SAME directory there thousand of GZIP file and also... (4 Replies)
Discussion started by: thepurple
10. UNIX for Dummies Questions & Answers
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