Created
September 9, 2014 19:18
-
-
Save abhinavjain241/fad29de293ce87a75fea to your computer and use it in GitHub Desktop.
Google Search Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Google Search Script | |
#!/bin/sh | |
if [ "$3" = "" ] | |
{if [ "$2" = "v" ] | |
then | |
google-chrome http://www.google.com/search?q="$1 -inurl:(htm|html|php|pls|txt) intitle:index.of “last modified” (mkv|mp4|avi)" | |
elif [ "$2" = "m" ] | |
then | |
google-chrome http://www.google.com/search?q="$1 -inurl:(htm|html|php|pls|txt) intitle:index.of “last modified” (mp3|wma|aac|flac)" | |
fi} | |
else | |
{ | |
if [ "$3" = "v" ] | |
then | |
google-chrome http://www.google.com/search?q="$1 $2 -inurl:(htm|html|php|pls|txt) intitle:index.of “last modified” (mkv|mp4|avi)" | |
elif [ "$3" = "m" ] | |
then | |
google-chrome http://www.google.com/search?q="$1 $2 -inurl:(htm|html|php|pls|txt) intitle:index.of “last modified” (mp3|wma|aac|flac)" | |
fi } | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment