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.
我正在尝试将命令的输出存储到下面的 bash 脚本中的变量,但输出显示在屏幕上而不是存储在变量中
#!/bin/bash check=$(ip link show dev mylink) echo "$check"