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)