Sorry for this cross posting, but I can not find a good "bash" mailing list… I am certain FreeBSD gurus will provide me with a fast and reliable 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
…400 times

I need to insert this into another text file using printf() items should be converted into variable looping… 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 line1item1 line1item2 line1item3


Any good idea or example will be welcome.


¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

P "Please consider your environmental responsibility before printing this e-mail"


_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to