https://serverfault.com/questions/105386/bash-loop-how-to-stop-the-loop-when-i-press-control-c-inside-a-command/617544#617544

I’ve heard of Ctrl-d, and Ctrl-c, but not Ctrl-z!