right tool for the job

Marc Evans Marc at SoftwareHackery.Com
Thu Mar 4 10:34:17 EST 2004


I'd say go with perl. In fact, you may want to review the SystemImager
code (http://www.systemimager.org/) which has this same generalized
problem. Note also, gnu-tar has some pretty decent include/exclude
mechanisms, which if you are trying to tar up somethine, may be the
answer.

- Marc

On Thu, 4 Mar 2004, Rob Lembree wrote:

>
> I need to make a list of files based on a few things.
> The list needs to explicitly exclude some directories,
> but with exceptions.
>
> So for example, I want to grab a whole directory hierarchy
> such as 'files', but exclude subdirectory 'exclude', but
> include subdirectory 'exclude/include'
>
> files
> files/exclude         <---- this directory is excluded
> files/exclude/include <---- except this directory or file
> files/exclude/others...
>
> The question everyone is Perl, Python, or something else?
> Simple shell scripting for this kind of thing is cumbersome.
>
>
>
> --
> Rob Lembree
> JumpShift, LLC
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
>



More information about the gnhlug-discuss mailing list