Fork me on GitHub

Best Bash tip ever! 7

While googling for something completely different (which I cannot remember right now), I passed by what is probably the best Bash tip I ever read:


bash$ head -10 /etc/apache2/sites-available/default
(...)
bash$ ^10^20^
(...)

What happens in the second command is that the previous one is repeated, replacing “10” by “20”! How great is that?!