题解 | #去掉空行#

去掉空行

https://www.nowcoder.com/practice/0372acd5725d40669640fd25e9fb7b0f

#!/bin/bash

while read line
do
    [ "$line" != "" ] && echo $line
done < nowcoder.txt
exit 0

全部评论

相关推荐

评论
2
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务