其他分享
首页 > 其他分享> > ash读文件 for循环

ash读文件 for循环

作者:互联网

busybox sh 是ash
InputFile="ip.txt"
while IFS= read -r line <&3; do
  printf '%s\n' "$line"
done 3< "$InputFile"
https://unix.stackexchange.com/questions/87301/busy-box-read-file-line-by-line

array="a b c"
for i in $array
do
echo $i
done

 

标签:文件,busybox,read,IFS,循环,questions,line,ash
来源: https://www.cnblogs.com/xpylovely/p/16403714.html