shell 逐行读文件
[root@localhost ~]# cat example1.sh
#!/bin/bash
while read rows
do
echo "Line contents are : $rows "
done < mycontent.txt
shell 逐行读文件
[root@localhost ~]# cat example1.sh
#!/bin/bash
while read rows
do
echo "Line contents are : $rows "
done < mycontent.txt

被折叠的 条评论
为什么被折叠?