scripts

My personal collection of scripts
git clone git://src.gearsix.net/scriptsscripts.zip
Log | Files | Refs | Atom | README | LICENSE

openurl.sh (raw) (412B)


   1 # DEPRECIATED: found a more simple solution (see new opeurl.sh)
   2 
   3 #!/bin/sh
   4 # openurl
   5 # description: script for opening .url filetype
   6 # e.g.$ openurl link.url
   7 # SEE: http://www.danielbrice.net/blog/opening-url-file-like-a-pro/
   8 # NOTE: see http://www.danielbrice.net/blog/opening-url-file-like-a-pro/ for .url spec
   9 
  10 URL=$(cat "$1" | grep "URL=" | cut -d= -f2)
  11 echo -e "xdg-open $URL"
  12 xdg-open "$URL" &> /dev/null
  13