【文件属性】:
文件名称:Shell脚本一次读取文件中一行的2种写法
文件大小:33KB
文件格式:PDF
更新时间:2021-01-20 15:18:04
shell shell for循环
写法一:
代码如下:
#!/bin/bash
while read line
do
echo $line #这里可根据实际用途变化
done < urfile u4ee3码如下:
var1=$(grep>/dev/null) <=读