On Wed, 2004-01-07 at 18:52, Gary Thornock wrote:
> > --- Stuart Jansen <[EMAIL PROTECTED]> wrote:
> > On Wed, 2004-01-07 at 18:45, Carl Youngblood wrote:
> > > Can I give a wildcard to cat instead of a list?  There
> > > are a lot of files.
> >
> > The shell will glob the pattern you give into a list. cat
> > doesn't have to know anything about wildcards for this to
> > work. So yes, you can use a wildcard.
> 
> A note about wildcards.  Yes, you can use them.  You may
> want to note that the shell will expand the wildcard in
> /sorted/ order.  So, if you care about the order that your
> files appear in the big output file, make sure the names are
> ordered the way you want them.

If it's a really *huge* list of files it will take a while to sort them.
Using an unsorted list will speed things up:

   $ cat $(ls -f) >foo.txt

Or any other variation using find, xargs, etc.

Corey



____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to