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.
我有一个存储在文件中的 IP 地址。我想使用单行命令从该文件中输出 ip 地址,然后 ssh 登录此远程计算机。我怎样才能用管道得到它。
如果你有一个文件说
# cat test 192.168.32.205
然后做:
ssh root@$(cat test)