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 A5A6A3EA98 for ; Fri, 7 Dec 2001 02:50:57 -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 fB77ovp21187 for ; Fri, 7 Dec 2001 02:50:57 -0500 Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id fB77ovO30198 for blinux-list@listman.redhat.com; Fri, 7 Dec 2001 02:50:57 -0500 Received: from server1.shellworld.net (root@server1.shellworld.net [64.39.15.178]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id fB77ouw30194 for ; Fri, 7 Dec 2001 02:50:57 -0500 Received: from localhost (ldavis@localhost) by server1.shellworld.net (8.11.1/8.11.1) with ESMTP id fB77ouV85859 for ; Fri, 7 Dec 2001 01:50:56 -0600 (CST) (envelope-from ldavis@shellworld.net) Date: Fri, 7 Dec 2001 02:50:56 -0500 (EST) From: Luke Davis To: blinux-list@redhat.com Subject: Re: joining a bunch of files In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: That's exactly what the awk command I posted (using eval), and the xargs commands posted by others, do; without the extra steps. On Fri, 7 Dec 2001, Jude DaShiell wrote: > Your safest way is going to be with a little shell script. If you have > the vis command it's probably better than cat -v. I don't know if these > files are parts of a binary or text file. The general script would look > something like this. The redirection I do is for a good reason. cat -v a1 > a2 a3 a4 a5 a6 a7 a8 a9 >>afile. The first line of the script would be > #!/bin/sh. That longer line I wrote earlier would be duplicated as many > times as necessary and you'd change the numbers each line down the script. > so that the last line in the script would be cat a91 a92 a93 a94 a95 a96 > a97 a98 a99 >>afile. If you use a command like .,.s/a[1-9]/a1[1-9]/gp > That should change line 3 in the script from cat a1 a2 a3 a4 to cat > a11 a12 a13 a14 etc. > > Jude > > > > > _______________________________________________ > Blinux-list mailing list > Blinux-list@redhat.com > https://listman.redhat.com/mailman/listinfo/blinux-list >