From: LIN Q. <nlv...@na...> - 2007-07-30 14:05:50
|
well,thank you. I have just found I forgot to add ' ', and was about to post it Dave Hylands wrote: > > Hi Lin, > > On 7/30/07, LIN QIU <nlv...@na...> wrote: >> >> thanks, it works. >> >> But I still have some gramer error, when I am not specifying "two" in >> cat f | new_num=2 awk -F: '/two/{printf >> "%s:%s\n",$1,ENVIRON["new_num"]};!/two/{print}' >> >> Instead, I am passing argvs but command, and tried different ways like >> #record two 2 >> export name=$1 >> export value=$2 > > Try this to expose your error: > > echo '$name' > echo "$name" > echo 'This is a test to see what $name contains' > echo 'This is a test to see what '$name' contains' > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://www.nabble.com/what-is-the-way-of-insert-text-to-a-specific-place-in-a-file-tf4157634.html#a11864263 Sent from the Gumstix mailing list archive at Nabble.com. |