How can I execute a series of commands from my bash history? For instance if I want to execute the commands numbered 34 to 42 in my bash history, I've tried things like:
for n in $(seq 34 42); do
exec \!$n;
done
but that doesn't really it do the the trick, does it. Any ideas?
Thanks!