The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 01-31-2008
manas_ranjan's Avatar
manas_ranjan manas_ranjan is offline
Registered User
 

Join Date: Jul 2007
Location: PUNE
Posts: 157
hey please try this out

while read name
do
i=0
name[$i]=`echo $name | sed 's/^.*(\(.*\)).*(\(.*\))/\1/'`
age[$i]=`echo $name | sed 's/^.*(\(.*\)).*(\(.*\))/\2/'`
i=`expr $i + 1`
done < filename
Reply With Quote