I want to open terminal with multiple instances of same server. For example, csshX server1 server1 server1
I'm trying to assign the formatted list of strings to single variable and use it in csshX
.
#!/usr/local/bin/fish
set nmdat (echo 'server1 ' | string repeat -n (echo $countofinstance))
csshX $nmdat
But, this isn't helping. I have also tried
csshX (echo 'server1 ' | string repeat -n (echo $countofinstance))
This isn't working as well.