-
-
Save J-ogawa/9957044 to your computer and use it in GitHub Desktop.
google search each arg keywords. example: pod list | grep -i web | awk '{print $1}' | xargs ggr
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
| #!/bin/bash | |
| if [ $# -gt 10 ] | |
| then | |
| echo -n "ggr $# possibilities? (y or n)" | |
| read ans </dev/tty | |
| if [ $ans != 'y' ] | |
| then | |
| exit 0 | |
| fi | |
| fi | |
| for keyword in $@ | |
| do | |
| url="https://www.google.co.jp/search?q=${keyword}" | |
| open $url | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment