Wednesday, February 17, 2010

Aliasing and passing arguments in Bash

rssh() { xargs -i\{} -t ssh {} $@; }

Usage after setting the function:
$ cat list | rssh 'command'

No comments:

Post a Comment