I have a bash script as follows,
#!/bin/bash
zone=$1
if [ "$zone" == "A" ]; then
pdsh -l abc -w server[01-12] 'sudo abc stop'
elif ["$zone" == "B" ]; then
pdsh -l abc -w server[1-12].abc.def.com 'sudo abc stop'
fi
The server string .abc.def.com is throwing an error. What can i do to make it accept the string
You are missing a space in your
elifline: