Bash skip sleep and go to next loop iteration
<p>I have a bash loop that looks like this:</p>

<pre><code>something(){
    echo "something"
}

while true; do
    something
    sleep 10s
done | otherCommand
</code></pre>

<p>When the loop is in the sleep state, I want to be able to be able to run a function from the terminal that will skip the sleep step and go on to the next iteration of the loop.</p>

<p>For example, if the script has been sleeping for 5 seconds, I want the command to stop the script from sleeping, go on to the next iteration of the loop, run <code>something</code>, and continue sleeping again.</p>