What is the code for compressing files using pkzip ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting What is the code for compressing files using pkzip ?
# 1  
Old 02-17-2010
What is the code for compressing files using pkzip ?

hi everyone ,

Can someone provide me a shell program to compress and decompress files using gzip , i dont know anything in shell programming , this code is a part of my project.

So can someone help with me the code ?

Last edited by mig23; 02-17-2010 at 11:27 AM..
# 2  
Old 02-17-2010
I don't have pkzip available but it seems to be like any other compression tool. For simple usage there is no need of a shell script or shell scripting tools. Tell more details where you got stuck or maybe google for it and try it out.
# 3  
Old 02-17-2010
I will try and reply ......

---------- Post updated at 08:56 PM ---------- Previous update was at 07:26 PM ----------

zaxxon ,
this is the question :

Code:
 7.	Create a script which compresses all files individually in a given directory and all its subdirectories using gzip. This is handy for saving space on a system where files containing documentation for programs installed on the system can be compressed. Try compressing all html, txt and pdf files in /usr/share/doc and its subdirectories using this script.

I request you to change topic heading from "pkzip" to "gzip"
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Logrotate and Compressing only yesterdays files

Hello, I have a syslog server at home and am currently experiencing an issue where my logs will rotate and compress however it will rotate and compress yesterdays file and the newly created log file for the current day. When it does this however it will also create another new file for today... (9 Replies)
Discussion started by: MyUserName7000
9 Replies

2. Shell Programming and Scripting

Getting latest files and compressing from a textfile

I'm doing a cleanup script for a directory using KSH. I'm keeping the file name prefixes in a text file. In a KSH, I want to read the prefix from the file, and match the pattern of the file and keep and compress(.Z) the latest 4 versions of the matched files in the directory. And I want to delete... (1 Reply)
Discussion started by: manchimahesh
1 Replies

3. Shell Programming and Scripting

Compressing files

I need help to do a script that will compress a file that's bigger than 5000 octets and won't overwrite the previous compress file. lets say I have mylogfile.log and I would compress it I would become mylogfile. 1. log and if I would compress again mylogfile.log it would be mylogfile. 2.... (8 Replies)
Discussion started by: Froob
8 Replies

4. UNIX for Dummies Questions & Answers

Compressing of log files

Hello All My first post in the forum. :) I've this huge log files of size 20GB-30 GB in my unix server. I want to analyse the log file for some error messages. But because of the enormity of the size of these files i'm not able to grep/search the pattern in the file . Also, tried to gzip the... (1 Reply)
Discussion started by: sgbhat
1 Replies

5. UNIX for Dummies Questions & Answers

compressing code onto one line

hi, i am trying to rewrite some of my code onto one line. but it's not working. what's happening is that the program exits and doesn't execute any of the code that follows. did i make a mistake? i'm guesssing that there is something wrong with my final, "&& exit". or is possible... (1 Reply)
Discussion started by: ankimo
1 Replies

6. UNIX for Advanced & Expert Users

Compressing files on NAS mount

Hello, I am having difficulty compressing the files using compress or GZIP utility on NAS share NFS mounted on my linux server. Any one have idea on how to do this ? I get the followign error but the trying to compress the files STRP2> compress STR_OUTBOUND_CDM_LOG_LOB.PRT2008_26.txt... (1 Reply)
Discussion started by: kamathg
1 Replies

7. HP-UX

uncompress of PKZIP files on HPUX

Hi All, is there any command to unzip the compressed files compressed using PKZIP on HP-UX. We dont have unzip. and gunzip or compress commands are not working. is there any other to do this? Thank you very much for the help. Regards, Srinivas (3 Replies)
Discussion started by: srinivas_paluku
3 Replies

8. UNIX for Dummies Questions & Answers

compressing two files in a script

Hi, i have written a script in unix which produces two files(.csv file) at the end. Now i want to add these to files in a zip file and send the zip file across the network by FTP. Problem is that i dunno how to make a single zip file containing the two files that have been created by the script.... (1 Reply)
Discussion started by: nimish
1 Replies

9. UNIX for Dummies Questions & Answers

Compressing files

I have never used this command before. I need to use the "compress" command to compress all files located in the subdirectories under the following directories: /home/ftp/inbound/Fordin Please advise, I appreciate your help. Thanks, Syed (3 Replies)
Discussion started by: sh9492
3 Replies

10. UNIX for Dummies Questions & Answers

uncompress pkzip files

Are there any unix/linux tools that can uncompress the "pkzip" files from DOS env. Thanks . (2 Replies)
Discussion started by: Wing m. Cheng
2 Replies
Login or Register to Ask a Question