Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直将 bc 与 <<< 运算符一起使用
bc <<< 3+3
但我想知道 <<< 到底是做什么的?它会回声和管道吗?
根据 GNU bash 手册
3.6.7 Here Strings A variant of here documents, the format is: <<< word The word is expanded and supplied to the command on its standard input.
所以我想这只是一个通过管道传输到标准输入的here字符串。