Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. google query to search
  2.  
  3. google query to search &
  4.  
  5. #!/bin/bash -
  6.  
  7. FLAG="-i"
  8. INCOG=""
  9.  
  10. if [ x"$1" == x"$FLAG" ]
  11. then
  12. INCOG="--incognito"
  13. shift
  14. fi
  15.  
  16.  
  17. QUERY=$(echo "$*" | sed 's/+/%2b/g' | sed 's/#/%23/g' | tr -s ' ' '+')
  18.  
  19. nohup /opt/google/chrome/google-chrome $INCOG -url www.google.com/search?sourceid=chrome&ie=UTF-8&q=$QUERY > /dev/null 2>&1 &
  20. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement