随笔分类 -  shell

摘要:测试文本test.log 1 123 456 2 789 3 111 脚本 #!/bin/bash fileName="test.log" #第一种方法 num=0 cat $fileName | while read line do let num+=1 echo $line done echo 阅读全文
posted @ 2022-06-07 16:18 夕阳下D奔跑 阅读(4) 评论(0) 推荐(0)