Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Nov 2008 19:43:52 +0100
From:      bsd <bsd@todoo.biz>
To:        Liste FreeBSD <freebsd-questions@freebsd.org>
Subject:   scripting text replacement
Message-ID:  <4B1A9F30-B8BC-4C48-A85F-3697C6AB3B7B@todoo.biz>

next in thread | raw e-mail | index | archive | help
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"





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B1A9F30-B8BC-4C48-A85F-3697C6AB3B7B>