From owner-freebsd-questions@FreeBSD.ORG Sat Nov 8 19:02:13 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5596D106567C for ; Sat, 8 Nov 2008 19:02:13 +0000 (UTC) (envelope-from bsd@todoo.biz) Received: from newmail.rmm.fr (newmail.rmm.fr [87.98.206.99]) by mx1.freebsd.org (Postfix) with ESMTP id 14D248FC12 for ; Sat, 8 Nov 2008 19:02:12 +0000 (UTC) (envelope-from bsd@todoo.biz) Received: from localhost (localhost [127.0.0.1]) by newmail.rmm.fr (Postfix) with ESMTP id 03EF728BDE for ; Sat, 8 Nov 2008 19:44:10 +0100 (CET) X-Virus-Scanned: amavisd-new 2.6.1 (20080629) at rmm.fr Received: from newmail.rmm.fr ([127.0.0.1]) by localhost (newmail.rmm.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id evjXsLqNZ--t for ; Sat, 8 Nov 2008 19:44:09 +0100 (CET) Received: from [10.0.1.2] (unknown [41.223.156.242]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: grego03) by newmail.rmm.fr (Postfix) with ESMTPSA id D979E28B53 for ; Sat, 8 Nov 2008 19:44:08 +0100 (CET) Message-Id: <4B1A9F30-B8BC-4C48-A85F-3697C6AB3B7B@todoo.biz> From: bsd To: Liste FreeBSD Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v929.2) Date: Sat, 8 Nov 2008 19:43:52 +0100 X-Mailer: Apple Mail (2.929.2) X-Mailman-Approved-At: Sat, 08 Nov 2008 20:48:03 +0000 Subject: scripting text replacement X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Nov 2008 19:02:13 -0000 Sorry for this cross posting, but I can not find a good "bash" mailing =20= list=85 I am certain FreeBSD gurus will provide me with a fast and reliable =20 answer to this little question. Here is the deal: ----------------- I have a file containing a list of items like that: line1item1 line1item2 line1item3 line2item1 line2item2 line2item3 =85400 times I need to insert this into another text file using printf() items =20 should be converted into variable looping=85 like that: printf "Bla bla bla $1 bla bla $2 bla bla $3 bla bla $2" The main thing is that I can not get $1 $2 $3 to correspond to =20 line1item1 line1item2 line1item3 Any good idea or example will be welcome. =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF Gregober ---> PGP ID --> 0x1BA3C2FD bsd @at@ todoo.biz =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF P "Please consider your environmental responsibility before printing =20 this e-mail"