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本文共 210 字,大约阅读时间需要 1 分钟。
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