escape from a linux cli for loop
Posted
by aidan
on Stack Overflow
See other posts from Stack Overflow
or by aidan
Published on 2010-06-10T16:21:34Z
Indexed on
2010/06/10
16:22 UTC
Read the original article
Hit count: 257
I'm doing something like this:
for f in `find -iname '*.html'`; do scp $f remoteserver:$f; done;
I've got through about 3 of the 1000 files and I've decided I want to abort the operation.
CTRL+C only escapes the SCP login prompt and takes me to the next one, rather than escaping the for loop.
Is there a better way than hitting CTRL+C 9997 times?
Thanks!
© Stack Overflow or respective owner