Linux shell 命令读取一个文本每一行文字

while read LINE
do
f=$LINE
done < b.txt
echo $f

#读出b的文件,进行分析。

#循环 shell

for ((i=0;i<$f-1;i++))
do
 echo $i
done


This entry was posted in Linux and tagged , , . Bookmark the permalink.
月小升QQ 2651044202, 技术交流QQ群 178491360
首发地址:月小升博客https://java-er.com/blog/linux-shell-read-line/
无特殊说明,文章均为月小升原创,欢迎转载,转载请注明本文地址,谢谢
您的评论是我写作的动力

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*

  

  

About Me

静水流深,水滴石穿