Skip to content

Instantly share code, notes, and snippets.

@ishankhare07
Created September 8, 2014 06:38
Show Gist options
  • Save ishankhare07/7b97a84ff4199f307af3 to your computer and use it in GitHub Desktop.
Save ishankhare07/7b97a84ff4199f307af3 to your computer and use it in GitHub Desktop.
shell script for launching the browser and taking to specified address
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