while read line
do
    if [ "$line" != "" ] ; then
        echo $line
    else
        echo "empty line"
    fi
done  <tmp3.txt

相关文章:

  • 2021-06-12
  • 2021-08-06
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-07
  • 2021-09-05
  • 2021-10-22
  • 2021-11-14
  • 2021-12-15
  • 2022-03-07
相关资源
相似解决方案