On Sat, Nov 8, 2008 at 10:43 AM, bsd <[EMAIL PROTECTED]> wrote:

> 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"

awk '{print "Bla bla bla "$1" bla bla "$2" bla bla "$3" bla bla "$2}'
< file.txt > file-bla-bla-bla.txt

-d

-- 
http://dannyman.toldme.com
_______________________________________________
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