commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Seems obvious, but other seemingly simple ways to use it don't work:
-bash: !whammy: event not found
with the slash :(
you can also do any combinations of quotes for a complex string:
echo "It's great to be able to use a bang ("'!'") in a command"'!'
It's great to be able to use a bang (!) in a command!
There are 2 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.