Bash Catch Ctrl-C en un script
#!/bin/bash
function finish() {
echo "bye bye!"
}
trap finish SIGINT
for number in $(seq 10); do
echo "TODO: Insert work here..."
# Insert work to do here.
done
RF Engineer