shell读文件的两种方法
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了shell读文件的两种方法相关的知识,希望对你有一定的参考价值。
[[email protected] local]# cat read_line.sh #!/bin/bash for i in `cat file.txt` do echo $i done echo while read line do echo $line done < file.txt
本文出自 “yht的运维笔记” 博客,请务必保留此出处http://yht1990.blog.51cto.com/9014030/1911748
以上是关于shell读文件的两种方法的主要内容,如果未能解决你的问题,请参考以下文章