FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
operation:one-line-task.html [2019/02/11 00:36] kurihara |
operation:one-line-task.html [2020/01/23 02:18] (current) kurihara |
||
---|---|---|---|
Line 68: | Line 68: | ||
$ fab -H $H -- sudo route del -net 192.168.10.0 netmask 255.255.255.0 | $ fab -H $H -- sudo route del -net 192.168.10.0 netmask 255.255.255.0 | ||
$ fab -H $H -- sudo cp -p / | $ fab -H $H -- sudo cp -p / | ||
- | $ fab -H $H -- sudo "sed s/ | + | |
- | $ fab -H $H -- "echo "any host 192.168.100.1 gw 192.168.0.5" >> | + | $ fab -H $H -- sudo sed -i s/ |
- | $ fab -H $H -- "echo 'any host 192.168.100.1 gw 192.168.0.5' | + | |
+ | $ fab -H $H -- sudo "bash -c 'sed s/192.168.100.10/192.168.50.10/g /etc/hosts > /etc/ | ||
+ | $ fab -H $H -- sudo "bash -c 'echo "any host 192.168.100.1 gw 192.168.0.5" | ||
</ | </ | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.