Date: Mon, 10 Nov 2008 10:29:08 -0800 From: "Daniel Howard" <dannyman@toldme.com> To: bsd <bsd@todoo.biz> Cc: Liste FreeBSD <freebsd-questions@freebsd.org> Subject: Re: scripting text replacement Message-ID: <2a5241e00811101029g6f2501b4t395e30b5d10a1212@mail.gmail.com> In-Reply-To: <4B1A9F30-B8BC-4C48-A85F-3697C6AB3B7B@todoo.biz> References: <4B1A9F30-B8BC-4C48-A85F-3697C6AB3B7B@todoo.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 8, 2008 at 10:43 AM, bsd <bsd@todoo.biz> wrote: > 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 should = be > converted into variable looping=85 like that: > > printf "Bla bla bla $1 bla bla $2 bla bla $3 bla bla $2" awk '{print "Bla bla bla "$1" bla bla "$2" bla bla "$3" bla bla "$2}' < file.txt > file-bla-bla-bla.txt -d --=20 http://dannyman.toldme.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2a5241e00811101029g6f2501b4t395e30b5d10a1212>