Created
September 8, 2014 06:38
-
-
Save ishankhare07/7b97a84ff4199f307af3 to your computer and use it in GitHub Desktop.
shell script for launching the browser and taking to specified address
This file contains hidden or 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
echo "Select a browser " | |
echo "1. Chrome" | |
echo "2. Firefox" | |
read browser | |
echo "Which site you want to goto? " | |
read name | |
echo "Taking you to site $name" | |
if [ $browser == 1 ] | |
then | |
google-chrome $name | |
elif [ $browser == 2 ] | |
then | |
firefox $name; | |
else | |
echo "Wrong browser choice!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment