shell脚本之ALS输入数据校验

  • Post author:
  • Post category:其他


 if [ ![-e recommendations_new.txt ] ]
    then
      touch  recommendations_new.txt
 fi

grep  -E  "^([0-9]{1,11})\,([0-9]{1,11})\,(.*)" recommendations.txt  | while read line 
do
   echo $line >> recommendations_new.txt
done



版权声明:本文为qq_34597894原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。