script to rm files on multiple servers
Hello All,
New guy to the " dark side " of command line and trying hard to improve/establish a decent bash scripting ability. Have a need for a script sooner than later so I thought I would call out for help.
I need to have a bash script that can rm a file from multiple servers if logged onto one. Is there an easy way to do this?
I am thinking that I need a variable list of server names to use in the script along with just a simple rm /filepath.
Wouldn't I have to somehow " log into" each server to do the remove?
Would the script have to include an ssh to each server in the variable list ?
Trying to think out loud for this....
Thanks in advance for the help,
Steve
|