awk切割赋值多个 for _ in `cat data.out` do read id search_time <<< `echo $_ |awk -F "|" '{print$1,$3}'` grep $id /data/$search_time/* |awk -F "|" 'print{$1"|"$47}' >> online_data.out done