cat file |tr -s "\n"
grep -v ^$ file
sed -n '/^[^$]/p' file
cat file |sed '/^$/d'
awk '{if($0 != "") print $0}' file
awk '{if(length !=0) print $0}' VM_total.py
转载于:https://my.oschina.net/u/2343310/blog/1082056
cat file |tr -s "\n"
grep -v ^$ file
sed -n '/^[^$]/p' file
cat file |sed '/^$/d'
awk '{if($0 != "") print $0}' file
awk '{if(length !=0) print $0}' VM_total.py
转载于:https://my.oschina.net/u/2343310/blog/1082056