每行操作
cat 1.log|while read line; do NAME=`awk 'BEGIN {split("'"$line"'",arr);print arr[1]}'` ID=`awk 'BEGIN {split("'"$line"'",arr);print arr[2]}'` done
按列操作思想cat file | grep "define" | awk '{print $2}'