Saturday, January 3, 2015

Bash command to print list of sequential host name

Bash command to print list of sequential host name:

for i in `seq 11 15`; do echo "server${i}"; done



this will print the following hostname:

server11
server12
server13
server14
server15