read start _ < <(ls -1l | wc -l); echo $start
尤其是:
原始代码:
read start _ < <(du -bcm kali-linux-2016.2-amd64.iso | tail -1); echo $start
我只是简化了代码,因为我对语法感兴趣
答案 0 :(得分:1)
以下内容应有助于“ _”: https://unix.stackexchange.com/questions/280453/understand-the-meaning-of
这与“ <<”有关: https://askubuntu.com/questions/678915/whats-the-difference-between-and-in-bash
请先做更多研究,然后再将其倾倒在SO上进行工作。
和echo
通常只是重复说出的内容(“ 呼应”)。 “ $
”是Shell脚本中变量的符号,因此$ var1是一个名为var1的变量。为了访问任何变量,您必须在其前面加上'$
'