Skip to content

Instantly share code, notes, and snippets.

@marktabler
Created October 31, 2010 18:30
Show Gist options
  • Save marktabler/656952 to your computer and use it in GitHub Desktop.
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.
#!/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
@j3j3
Copy link

j3j3 commented May 16, 2012

What an amazing gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment