Created
October 31, 2010 18:30
-
-
Save marktabler/656952 to your computer and use it in GitHub Desktop.
Read a file containing 1 website address per line, and open each in the default browser.
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'launchy' | |
if File.exists?(ARGV[0]) | |
sites = File.open(ARGV[0]) | |
sites.each { |line| Launchy.open(line)} | |
else | |
abort "No link file found (#{ARGV[0]}), usage is 'popsites <linkfile>'" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What an amazing gist.