Hacker News new | ask | show | jobs
by hansel_der 1637 days ago
to save you the trouble of finding out for your self: yes, it works (! is not that special)
1 comments

I eventually have to figure out what ! does. In my she'll it always leads to errors about some events and whatnot. I shall Google and find out ;-)
Oh wow ! is quite powerful. Some of these bang commands are quite questionable, but hey... Like !12 runs the 12th command from the bash history. That's seems super dangerous to me.
Here's a good collection of tricks like that:

https://github.com/jlevy/the-art-of-command-line