cat category.csv  | awk -F"[,;]" '{print "update category set parent_id=\047",$2, "\047 where id =",$3,";"}'  // 其中\047即为单引号 

 

相关文章: