Max says…

Avatar

thoughts of a web developer

Continue in Interactive Bash Loop

Came across a useful keyboard shortcut to continue to the next iteration of an interactive bash for loop.  Let’s say you have something like:

for i in $(cat server_list.txt); do
   ssh -q $i hostname
done

If one of the servers is unresponsive, you can continue to the next iteration with

ctrl + \

No Comments, Comment or Ping

Reply to “Continue in Interactive Bash Loop”