`goto` in bash
One way to spend Sunday night is to implement the famous goto
in bash:
goto() { eval "$(cat "$0" | sed -n "$1,$ p")" ; }
goto $1
exit
echo "Yeah!"
goto $1
And run it using:
$ goto.sh 4
::: {#footer} [ August 9th, 2015 8:57pm ]{#timestamp} [bash]{.tag} :::