Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

I have a (text) file containing a list of web site addresses. I know that I can open the file in an editor and then copy-paste the addresses to the browser address bar. That means, if I have ten addresses in that file, I will need ten copy-paste operations, which must be tedious. But is there a way to ask the browser (preferably Google Chrome or Firefox) to open all of them in one go in different tabs?

I am using Ubuntu, if that is related in any way to the solution you provide.

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, Tog, mpy, Shekhar, random Oct 27 '13 at 22:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

With Firefox You can put the URLs in the command line that starts the browser:

firefox.exe "one.com" "two.com"

The quotes are necessary. You will need of course a means of creating the start command from your text file. A script should do that for you.

share|improve this answer
    
The solution is needed for Ubuntu, firefox.exe should be firefox, and the list is in a file, not command line arguments. –  Masroor Oct 27 '13 at 9:26

Since the intended solution will be used Ubuntu, the solution here is for Google Chrome or Firefox under Ubuntu.


Open a terminal, Ctrl-Alt-t. Type google-chrome `cat file-name-containing-the-URLs` or firefox `cat file-name-containing-the-URLs`. Press Enter

All the URLs in the above file will be opened in the browser.


The man pages for the above browsers show,

man google-chrome

google-chrome [OPTION] [PATH|URL]

man firefox

firefox [OPTIONS] [url]

So, both of the above indicate that if the URLs are provided as command line arguments, they will be launched fine.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.