How about

  find . -name "*.c" > filelist

to generate (or >> to append to existing list) your list file for tarring.
or

 tar cf tarfile `find . -name "*.c"`

which might fail if the list is too long.

-- 
John S. Weber

System Administrator
Center for Computational Mathematics
University of Colorado at Denver
Phone: (303)556-5394 Fax: (303)556-8550
[EMAIL PROTECTED]
http://www-math.cudenver.edu/~jweber

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
> >
>
>



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

Reply via email to