Use optimized sed to big file/stream to reduce execution time
Use
sed '/foo/ s/foo/foobar/g' <filename>
insted of sed
's/foo/foobar/g' <filename>
search_criteria = what do you want to kill pid = pid of you dont kill
The legend in the first column: i = installed p = installable Show Sample Output
since Mozai said that JSON is a subset of YAML ;)
Get the IP address of all your network cards. Show Sample Output
Just copy and paste the code in your terminal. Note : sudo apt-get for debian versions , change as per your requirement . Source : www.h3manth.com
when editing .bash_profile (or .bashrc), run this to use the new version without having to exit and open a new terminal
-f file -v invert-match : invert the sense of matching, to select non matching lines
One time you logged in, you can prove these method just writing "firefox".
More information about what homebrew is all about: http://github.com/mxcl/homebrew
rename is a great command, but can't get it to work on mac.
Parsing the output of ls is never a good idea for any reason. Using find this way: - works with files that have spaces in their names. - actually lists "sub folders" and not of all files and folders. - does not break if there are a huge number of files in the current directory.
this lets you edit a crontab file (which may be used as a backup as well) and insert this into your crontab. this way is especially handy, when multiple users are working on one account (e.g. root)
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: