man tac 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. Show Sample Output
Or "tail -r" on Solaris.
Yet another way to add a line at the top a of text file with the help of the tac command (reverse cat).
cut log from row 100 to row 150.
cut log from line 50 to line 88
Cats a file in reverse. Show Sample Output
It's quite fun to invert text using "flip.pl" (ref: http://ubuntuforums.org/showthread.php?t=2078323 ). Slightly more challenging is to flip a whole "cowsay". :-) Show Sample Output
This version handles directory names with spaces properly
Remove all empty directories below the current directory. If directories become empty as the results of this, remove those too.
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
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: