悠悠博客
(讨论区存档) — 技术永无止尽,未来事在人为
首页
>
Shell编程
>
如何编码
aae2008_lbh
如何编码
假设有一个log文件,文件名为test.log
数据为:
/home2/aaa.log /home2/aaa.sh /home2/aaa.txt a|a
/home2/aaa.log /home2/aaa.sh /home2/aaa.txt a|a
/home2/aaa.log /home2/aaa.sh /home2/aaa.txt a|a
怎么编辑一个循环来完成把文件中的每行信息都读出来。
小弟为初学者,希望高人给予解答。
davistar
while read line
do
do something with $line
done<test.log
寂寞烈火
编码?编辑?
walkerxk
LZ要做什么?读出来用cat不行么?还是要作什么操作?具体什么操作?
aae2008_lbh
问题已解决
谢谢各位大侠
上一篇:
二道shell面试题
下一篇:
求助文本处理问题