Last active
December 19, 2015 14:59
-
-
Save app2641/5973518 to your computer and use it in GitHub Desktop.
ggrksシェル。
引数に検索語句を入れて実行するとChromeでGoogle検索を行う。
AND検索も可。
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
#!/bin/bash | |
if [ $# == 0 ]; then | |
echo "引数に検索語句を指定してください" | |
exit 1 | |
fi | |
q=`echo $@ | sed -e 's/ /+/g'` | |
open -a Google\ Chrome https://www.google.com/search?q=$q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment