![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Where is the Security in Depth? | iBot | IT Security RSS | 0 | 01-20-2009 05:00 PM |
| How to print lines till till a pattern is matched in loop | anoopvraj | Shell Programming and Scripting | 3 | 10-30-2008 10:36 PM |
| find depth using ftw | germallon | High Level Programming | 2 | 06-17-2008 10:58 AM |
| mq queue depth | Satyak | Shell Programming and Scripting | 0 | 02-13-2008 05:28 AM |
| Moving files till the size is less than 200000. | rooh | UNIX for Dummies Questions & Answers | 1 | 04-06-2002 02:23 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
All,
i need a script which can zip the all files which are in directories and its subdirectories for example: dir1 contains file1,file2,dir1a,dir1b now dir1a also contains fil11,fil12 ,dirab so script should look for files in dir or sub dir till files not found and zip the all files. |
|
||||
|
This works for me.
Code:
zip -r myzip /tst adding: /tst/ (stored 0%) adding: /tst/dir1/ (stored 0%) adding: /tst/dir1/dir2/ (stored 0%) adding: /tst/dir1/dir2/dir3/ (stored 0%) adding: /tst/dir1/dir2/dir3/dir4/ (stored 0%) adding: /tst/dir1/dir2/dir3/dir4/mhfile4 (stored 0%) adding: /tst/dir1/dir2/dir3/myfile3 (stored 0%) adding: /tst/dir1/dir2/myfile2 (stored 0%) adding: /tst/dir1/myfile1 (stored 0%) adding: /tst/myfile (stored 0%) Last edited by jsmithstl; 6 Days Ago at 01:49 AM.. |
|
||||
|
Thank you very much it is working for me.....
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|