Skip to content

Instantly share code, notes, and snippets.

@marktabler
Created October 31, 2010 18:30
Show Gist options
  • Select an option

  • Save marktabler/656952 to your computer and use it in GitHub Desktop.

Select an option

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

j3j3 commented May 16, 2012

Copy link
Copy Markdown

What an amazing gist.

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