The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 11-13-2007
prowla prowla is offline
Read Only
  
 

Join Date: Nov 2007
Posts: 165
In a script (ksh):

i=1
echo 5.2.314 | sed 's/\./ /g' | while read n
do
echo "var$i = $n"
let i=i+1
done