Usage: google "[search string]" Example: google "something im searching for" This will launch firefox and execute a google search in a new tab with the provided search string. You must provide the path to your Firefox binary if using cygwin to $ff or create an alias like follows: alias firefox='/cygdrive/c/Program Files (x86)/Mozilla Firefox/firefox.exe' Most Linux flavors with Firefox installed will use just ff="firefox" and even OSX.
You can install filterous with
sudo apt-get install libxslt1-dev; sudo easy_install -U filterous
Show Sample Output
This is a naive way of finding source code comments in source code files that use C-like comments: // and /*...*/
"What it actually shows is going to be dependent on the commands you've previously entered. When you do this, bash looks for the last command that you entered that contains the substring "ls", in my case that was "lsof ...". If the command that bash finds is what you're looking for, just hit Enter to execute it. You can also edit the command to suit your current needs before executing it (use the left and right arrow keys to move through it). If you're looking for a different command, hit Ctrl+R again to find a matching command further back in the command history. You can also continue to type a longer substring to refine the search, since searching is incremental. Note that the substring you enter is searched for throughout the command, not just at the beginning of the command." - http://www.linuxjournal.com/content/using-bash-history-more-efficiently Show Sample Output
Searches Google, but requires no "", and will also search all terms input in the CL, eg: > google foo bar returns search URL " You could also use awk to replace all spaces with a +, which is how the Google search handles spaces, but that makes it more than one line.
* Add comment with # in your command * Later you can search that command on that comment with CTRL+R In the title command, you could search it later by invoking the command search tool by first typing CTRL+R and then typing "revert" Show Sample Output
Syntax: google query_with_spaces " so, make sure to end your query with a double quote Show Sample Output
Inspired by: http://www.commandlinefu.com/commands/view/8744/search-google-on-os-x
#!/bin/bash
if [ -n "$1" ]
then
firefox 'http://www.google.com/search?q="'$1'"'
else
firefox 'http://www.google.com'
fi
Ive aliased this script as 'google' on my system and I can type 'google "search terms"' to open firefox with my search terms. My first post here, if there are any improvements to be made please let me know in the comments.
This is the best way I have found to search out an application when I am not sure the title. Grep is just to remove anything that does not contain the term in the title or short description (lots of things might include the search term in the description, such as libraries used by the application) Show Sample Output
more idiomatic version of the same, using the flip-flop-operator; also printing lines with '//'-style comments
# Search for an available package on Debian systems using a regex so it only matches packages starting with 'tin'.
Finds all files recursively from your working directory, matching 'aMethodName', except if 'target' is in that file's path. Handy for finding text without matching all your files in target or subversion directories.
search content in files Show Sample Output
Support several arguments. Show Sample Output
-c will count the number of times your search matches in the file. Show Sample Output
Getting current wallpaper on nautilus file-managers
Add this to your bash profile, then quickly & easily (regex) search for and highlight keywords, with full text output.
by default, will output the whole line on which 'word' has been found
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: