小编Gau*_*rav的帖子

“<&3”和“done < file11 3< file22”是什么意思

我有以下脚本:

while read lineA && read lineB <&3
do
    echo "$lineA"
    echo "$lineB"
    echo
done < file11 3< file22
Run Code Online (Sandbox Code Playgroud)

这段代码工作正常。但我不明白这些:

  • <&3
  • done < file11 3< file22

shell io-redirection read

16
推荐指数
1
解决办法
1237
查看次数

标签 统计

io-redirection ×1

read ×1

shell ×1