Posted on 2008-10-31 12:26
Prayer 閱讀(1591)
評論(0) 編輯 收藏 引用 所屬分類:
Shell
while read line
do
t1=`echo "$line" | awk -F ',' '{print $1}'`
t2=`echo "$line" | awk -F ',' '{print $2}'`
t3=`echo "$line" | awk -F ',' '{print $3}'`
echo $t1
echo $t2
echo $t3
done < text.txt