I would have thought that the easiest way to do this would be to do a
'find /usr/src/linux/arch/alpha -name *.c -print > filename', and then do
a 'tar cvf your.filename.tar -T filename'.  This could be easily scripted
into a nice little script etc..

Regards

Chris

On Mon, 5 Mar 2001, Mikkel L. Ellertson wrote:

> This does not satify the requirments in the origional question.
> He want to preserve the origional directory structure in the archive.
> 
> On Mon, 5 Mar 2001, Lorris J. Woods wrote:
> 
> > move all the files that are .c to another dir. and point to it.
> > On Mon, 5 Mar 2001, Mikkel L. Ellertson wrote:
> >
> > > The only problem with the -T option is that it will not expand
> > > wildcards.  So from the file list he gave, it will look for a file
> > > called "/usr/src/linux/arch/alpha/boot/*.c", and a file called
> > > "/usr/src/linux/arch/alpha/boot/tools/*.c", instead of getting all the
> > > files in the two directories that end in .c.
> > >
> > > On Mon, 5 Mar 2001, Lorris J. Woods wrote:
> > >
> > > > Hi, here is my suggestion,
> > > >
> > > > tar cvf your.tar -T filelist
> > > >
> > > > this will create your.tar containing the data pointed to by filelist.
> > > >
> > > > I hope that's what you are looking for.
> > > >
> > > > On Mon, 5 Mar 2001, Claudiu Balciza wrote:
> > > >
> > > > > hi, I have a file containing file specs like in
> > > > >
> > > > >
> > > > > /usr/src/linux/arch/alpha/boot/*.c
> > > > > /usr/src/linux/arch/alpha/boot/tools/*.c
> > > > >
> > > > > I would like to tar those files with fullpaths (even if there's no file in
> > > > > some dir
> > > > > )
> > > > >
> > > > > how can I accomplish that ?
> > > > >
> > > > > Claudiu Balciza
> > > > >
> > > > >
> > > >
> > > > Regards,
> > > >
> > > > Lorris J. Woods
> > > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Redhat-list mailing list
> > > [EMAIL PROTECTED]
> > > https://listman.redhat.com/mailman/listinfo/redhat-list
> > >
> >
> > Regards,
> >
> > Lorris J. Woods
> >
> >
> >
> > _______________________________________________
> > Redhat-list mailing list
> > [EMAIL PROTECTED]
> > https://listman.redhat.com/mailman/listinfo/redhat-list
> >
> 
> -- 
> 
>     Do not meddle in the affairs of dragons,
>  for you are crunchy and taste good with ketchup.
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to