#!/bin/bash
#Author:Zhaoll Date:20200526
#删除文件脏数据
FILE=/home/yunwei/shell/20200519.txt
awk -F ‘|‘ ‘{if(NF!=31 || ($1 == ""|| $3 == "" || $5=="" || $7=="" || $9=="" || $11==""|| $13=="") ) print NR}‘ $FILE | sort -nr >nr.txt
while read line
do
sed -i "$line d" $FILE
done<nr.txt
echo "执行完毕!"