ok.sh:
--------------------------------------------------------------------------------------------------------------------------------------------
#sed "/^/[tool_path/][ /t]*/N;s/^/[tool_path/][ /t/n]*.*$//[tool_path/]/n//usr//bin//arm-linux-/" tools.cfg
TOOL=${TOOL:=/usr/bin/arm-linux-}
echo TOOL = $TOOL
TOOL1=`echo $TOOL |sed 's///////////g'`
sed '/^/[tool_path/][ /t]*/N;s/^/[tool_path/][ /t/n]*.*$//[tool_path/]/n'${TOOL1}'/' tools.cfg
--------------------------------------------------------------------------------------------------------------------------------------------