This week i was configuration a HP Vertica cluster environment and i needed to alter the /etc/hosts file on all of the hosts/nodes so that they can know each other.
Normally i do it one by one or i use MobaxTerm where i can work on more Linux hosts in the same time running the same commands(example bellow)
MobaxTerm Multiple Window Work
MobaxTerm is my favorite remote terminal but still i want to make this appending process more automatic.
echo 'test, string' | ssh user@host 'cat /path/file'
[root@primary ~]# echo 'test dummy' | ssh root@node3 'cat /tmp/test'
[root@primary ~]# ssh root@node3 'cat /tmp/test'
test dummy