From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.44.254]) by listman.redhat.com (Postfix) with ESMTP id 7978E3EA64 for ; Sat, 1 Dec 2001 00:34:59 -0500 (EST) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id fB15Yxp00800 for ; Sat, 1 Dec 2001 00:34:59 -0500 Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id fB15YxS24423 for blinux-list@listman.redhat.com; Sat, 1 Dec 2001 00:34:59 -0500 Received: from nntp.AegisInfoSys.com (nntp.AegisInfoSys.com [199.183.175.229]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id fB15Yww24419 for ; Sat, 1 Dec 2001 00:34:58 -0500 Received: (from henry@localhost) by nntp.AegisInfoSys.com (8.6.9/8.6.9) id AAA30919 for blinux-list@redhat.com; Sat, 1 Dec 2001 00:34:55 -0500 Message-ID: <20011201003455.B29873@nntp.AegisInfoSys.com> Date: Sat, 1 Dec 2001 00:34:55 -0500 From: Henry Yen To: blinux-list@redhat.com Subject: Re: joining a bunch of files References: <3.0.6.32.20011130152649.0087da70@mail.doorpi.net> <3.0.6.32.20011130184529.0087abe0@mail.doorpi.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93 In-Reply-To: <3.0.6.32.20011130184529.0087abe0@mail.doorpi.net>; from Brent Harding on Fri, Nov 30, 2001 at 06:45:29AM -0600 X-Loop: blinux-list@redhat.com Sender: blinux-list-admin@redhat.com Errors-To: blinux-list-admin@redhat.com X-BeenThere: blinux-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: blinux-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux for blind general discussion List-Unsubscribe: , List-Archive: according to 'man bash', pathname expansion results in "an alphabetically sorted list". with that, i should think: cat file_prefix_* > final_file should be sufficient. BTW linux has a much longer command line length limit, though i don't know what it is; i imagine 4K, at least. On Fri, Nov 30, 2001 at 06:45:29AM -0600, Brent Harding wrote: > I didn't use xargs, but I did cat `ls | sort` >file. > At 04:33 PM 11/30/01 -0500, Nicolas wrote: > > ls file_prefix_* | sort | xargs cat > final_file > >> I've heard of this, but it doesn't appear to be the thing, dos would do it > >> if I copied and typed in all the names, would run out of command line > >> anyway, 255 character limit. [ snip ] > >> How do > >> >> > I put the files together to make one huge file without having to type all > >> >> > the echo > file > >> >> > echo > file > >> >> > and so on up to 99? > >> >> > There must be a copy a range, like echo > file, or something > >> >> > on that order. Using * won't necessarily copy them in numeric order though. -- Henry Yen Aegis Information Systems, Inc. Senior Systems Programmer Hicksville, New York