![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unix script to takes the old data from a TXT file and compress them into new file | vpandey | Shell Programming and Scripting | 2 | 03-05-2008 11:10 AM |
| Compress a file before ftp | MrMac | Shell Programming and Scripting | 1 | 11-21-2006 09:06 AM |
| Compress while wrting to a file using a unix pipe | booyena1 | HP-UX | 2 | 10-26-2005 12:52 AM |
| Compress in Unix | Sasuke | UNIX for Dummies Questions & Answers | 1 | 10-10-2003 07:18 AM |
| Unix compress-Wintel uncompress | rampart1 | UNIX for Advanced & Expert Users | 3 | 09-07-2003 04:33 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
This is the pseudo code for the question....The '$' signs are parameters passed to the script....
Make sure you check the path for your zip... PHP Code:
PHP Code:
|
|
||||
|
A word of warning on the compress command - "compress afile.txt" will compress "afile.txt" and rename it "afile.txt.Z", the original afile will no longer exist. So, if you need access to the original after compression, make a copy first!
The uncompress command (or compress -d) works whether you specify afile.txt or afile.txt.Z |
|
||||
|
Here..
There are many compressing commands in UNIX/Linux: zip/unzip,gzip/gunzip,compress/uncompress,pax and so on...
Even tar command now knows to compress, for example like tar -cvzf myarchive.tar.Z /somedirectory so there is no need to perform compression as it does it automatically with "z" option added. Hope it helps. Get "UNIX in 24 hours" book or "UNIX Essentials and UNIX Core" DVD as they explain stuff like that. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| linux, linux commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|