题解 | #打印空行的行号#
打印空行的行号
https://www.nowcoder.com/practice/030fc368e42e44b8b1f8985a8d6ad255
#!/bin/bash num=0 while read line do ((num++)) [ "$line" == "" ] && echo $num done < nowcoder.txt exit 0
打印空行的行号
https://www.nowcoder.com/practice/030fc368e42e44b8b1f8985a8d6ad255
#!/bin/bash num=0 while read line do ((num++)) [ "$line" == "" ] && echo $num done < nowcoder.txt exit 0
相关推荐