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.
以下命令返回 2 行,这些是我的 CPU 的温度:
acpi -t
我将如何将这两行存储在 bash 脚本中的变量中,以便我可以使用它们?
你试过这个吗?
var=$(acpi -t)