![]() |
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 |
| Archiving big ammount of files. | Maxeg | UNIX for Dummies Questions & Answers | 3 | 03-27-2008 04:26 PM |
| Clouds (Partially Order Sets) - Streams (Linearly Ordered Sets) - Part 2 | iBot | Virtualization and Cloud Computing | 0 | 07-28-2007 07:40 AM |
| Clouds (Partially Order Sets) – Streams (Linearly Ordered Sets) - Part 1 | iBot | Complex Event Processing RSS News | 0 | 07-28-2007 07:40 AM |
| Archiving and moving the files | nvuradi | Shell Programming and Scripting | 1 | 03-09-2007 08:58 AM |
| Command to list Files less than or equal to 2k size | bache_gowda | UNIX for Advanced & Expert Users | 3 | 12-26-2003 12:02 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
archiving equal sets of files from directories
Good morning.
I am trying to write a script on SunOS that will tar up files from a set of directories. This is no problem, but what I need to do is to create 3 different archives each containing a third of the files from a particular sub-directory. So if I have a directory structure: masterdir -0 --dir ---dir ----0 ----1 ----2 ----3 -1 --dir ---dir ----0 ----1 ----2 ----3 -2 --dir ---dir ----0 ----1 ----2 ----3 So I have a directory with 10 subdirectories labeled 0-9 and in each one a series of subdirectories labeled 0-1000 containing a series of files. I need to create archives with identical directory structures and each one containing approximately 1/3 of the files from each leaf directory. Any suggestions on the best way to accomplish this? Thanks in advance |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|