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:
greps your bash history for whatever you type in at the end returning it in reverse chronological order (most recent invocations first), should work on all distros.
works well as an alias
Cats a file in reverse.
cut log from line 50 to line 88
cut log from row 100 to row 150.
Remove all empty directories below the current directory. If directories become empty as the results of this, remove those too.
When there is a bad block in the middle of your file, you can see its begninning with `cat' and its end with `tac'. But both commands terminates with an error. So this sequence rebuilds a new file without badblock.
Or "tail -r" on Solaris.