This alias is useful if you need to use some text often. Executing the alias will copy the text into your clipboard and then remove it after X seconds. Show Sample Output
I'm not sure how reliable this command is, but it works for my needs. Here's also a variant using grep. nslookup www.example.com | grep "^Address: " | awk '{print $2}' Show Sample Output
This command allows you to revert every modified file one-by-one in a while loop, but also after "echo $file;" you can do any sort of processing you might want to add before the revert happens. Show Sample Output
In this case, we'll be editing every PHP file from the current location down the tree. You can show all the files in the vim buffer with :buffers which outputs something like, :buffers 1 %a "./config/config.php" line 1 2 "./lib/ws-php-library.php" line 0 3 "./lib/css.php" line 0 4 "./lib/mysqldb.class.php" line 0 5 "./lib/config.class.php" line 0 6 "./lib/actions.php" line 0 Press ENTER or type command to continue If you'd like to edit ./lib/mysqldb.class.php for example, enter :b4 anytime you're editing a file. You can switch back and forth. Show Sample Output
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: