![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| exclude a line | big123456 | Shell Programming and Scripting | 3 | 04-24-2008 09:31 AM |
| How to exclude top level directory with find? | siegfried | Shell Programming and Scripting | 3 | 09-18-2007 08:15 PM |
| how do i exclude the current directory when using find? | mjays | Shell Programming and Scripting | 7 | 04-24-2007 05:13 AM |
| Exclude & Zip | dreams5617 | Shell Programming and Scripting | 1 | 02-11-2007 04:01 PM |
| Exclude a directory to tar | ust | UNIX for Dummies Questions & Answers | 1 | 10-12-2005 01:35 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Tar directory but exclude other
OS: SunOS perfs01 5.8 Generic_117350-23 sun4u sparc SUNW,UltraAX-i2
I want to tar a directory, but there are subdirectoires I want to exclude. Does anyone know how to do it? Please help. thanks. |
| Forum Sponsor | ||
|
|
|
|||
|
You could use the "-L InputList" argument and provide the list of directories (and/or files) to include in a file ('man tar' for more info). If you can generate the list of directories easily then this works well.
This option needs care tho as (for obvious reasons) tar doesn't descend recursively through directories in an InputList, so each directory needs to be specifically included - this is probably what you want so that you can, say, tar a directory and some, but not all, of its children. hope this helps cheers |
|||
| Google UNIX.COM |