Skip to content

Instantly share code, notes, and snippets.

@J-ogawa
Created April 3, 2014 15:52
Show Gist options
  • Select an option

  • Save J-ogawa/9957044 to your computer and use it in GitHub Desktop.

Select an option

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
#!/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