当通过包含空格的文件的文件夹递归循环时,我使用的shell脚本是这种形式,从互联网复制:
while IFS= read -r -d $'\0' file; do
dosomethingwith "$file" # do something with each file
done < <(find /bar -name *foo* -print0)
Run Code Online (Sandbox Code Playgroud)
我想我理解IFS位,但我不明白' < <(...)'字符是什么意思.显然这里有一些管道.
你知道,谷歌"<<"非常难.