From owner-freebsd-questions@FreeBSD.ORG Wed Jun 17 18:22:10 2009 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 85B5A106566B for ; Wed, 17 Jun 2009 18:22:10 +0000 (UTC) (envelope-from chloekcy2000@yahoo.ca) Received: from web57412.mail.re1.yahoo.com (web57412.mail.re1.yahoo.com [66.196.100.64]) by mx1.freebsd.org (Postfix) with SMTP id 24B548FC16 for ; Wed, 17 Jun 2009 18:22:09 +0000 (UTC) (envelope-from chloekcy2000@yahoo.ca) Received: (qmail 33086 invoked by uid 60001); 17 Jun 2009 17:55:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1245261329; bh=2wunS1v5I5sIB2xK4DfYO15K0VBlQB28jqsET3DYzKk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=RdFpi+LRX2S64APS+Nrzo0WUE5u2CM0ZoTHz8NQzEHgxouFI8NdP0Eafpy+4+tWA28b+BkxulakzRCBHBX6GYP9gatAn4qfHJ/HfTpdEOEtwa3m2/ynBHaFrPh0Vl6vPkfkblZeyt6zYmi2+LDzgGWAkeTqXJShXKWhmU8U52xI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=uhl+Sahm2OHiCp2Xg6ZQqWY8zMHAMbOOKVZOnpJpt7mlKOWbKCTavLA/LtI6R1OKhwJad2rwfUodmWGDw3jb9/42fW5nJO1ilWweX4mrehzztwUoowlRCS8zzHuafaZ6fPDUt0Av1wghzbFfbaRH7ckTNVDgB48j+yESe0VrgX0=; Message-ID: <974960.33077.qm@web57412.mail.re1.yahoo.com> X-YMail-OSG: oYDXfnsVM1nr928epedcdFcO3aNv697UJgKRj5yHdBD4QvBIRHMeZ8B7YxgegUUBZnnBSZssfqNOjH.8De3OZ7iNjUgRgeKiltOO1AkLx98Po1XR9CAkZrclp3vyZxhETOnGZuiOgz8sjehOGmPt5iwBweWvoi_hw6dcCPS0ThEsHkFoosHd3ay5eZ4Ekah0qwiBBW1ScfQqU2XyyLd9F3LI1EKZ0W5G3tmryXS.Ra9CBSBSoCMnKXvtrf4qygKPJCJaJXBr3a.sYkZ_KxkYP7xwk_J5iVVc3Ikd5lQT0udI41FCDVMRjCbJRK7EFEnwbY_7j0NUSlnSVIefW6M_cuEIPXZPEBkUCTX9Qn_tQCuEdRQ- Received: from [67.55.17.0] by web57412.mail.re1.yahoo.com via HTTP; Wed, 17 Jun 2009 10:55:28 PDT X-Mailer: YahooMailClassic/5.4.12 YahooMailWebService/0.7.289.15 Date: Wed, 17 Jun 2009 10:55:28 -0700 (PDT) From: chloe K To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: sed help 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: Wed, 17 Jun 2009 18:22:10 -0000 Hi=20 =A0 =A0 I have a file. list.txt (two columns) =A0 column1=A0=A0=A0 column2 name=A0=A0=A0=A0=A0=A0=A0 address =A0 =A0 I need to put in the letter file letter.txt eg: =A0 Dear: Chloe Address: CA =A0 Can I use this=20 =A0 for i `cat list.txt` | sed 's/Chloe/$i.1; /CA/$i.2/g' $i.letter.txt =A0 Thank you for your help =0A=0A=0A ____________________________________________________________= ______=0AThe new Internet Explorer=AE 8 - Faster, safer, easier. Optimized= for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internet= explorer/