Back

shell

Using seq in a loop

for i in $(seq 1 6)
do
echo $i
tomcat$i/bin/shutdown.sh
sleep 10
tomcat$i/bin/startup.sh
done
  • linux/shell.txt
  • Last modified: 2018/05/25 13:05
  • (external edit)