Open multiple tabs in Firefox from a file containing urls

for /F %i in (url_list.txt) do Firefox.exe -new-tab "%i"
Firefox.exe needs to be in the path To enhance: add a sleep... url_list contains urls: D:\>type url_list.txt

2011-09-09 02:17:16

1 Alternatives + Submit Alt

  • this will open a new tab in firefox for every line in a file the sleep is removable but i found that if you have a large list of urls 50+, and no sleep, it will try to open all the urls at once and this will cause them all to load a lot slower, also depending on the ram of your system sleep gives you a chance to close the tabs before they overload your ram, removing & >2/dev/null will yield unpredictable results.

    for line in `cat $file`; do firefox -new-tab "$line" & 2>/dev/null; sleep 1; done
    hamsolo474 · 2011-11-12 13:47:24 0

What Others Think

i take it this is for cygwin, i dont know how to make it work on ubuntu
hamsolo474 · 561 weeks and 3 days ago
Keep in mind that you can start playing free slots in canada right now using any preferred device and operating system just a good internet connection is required to proceed
Stephy · 58 weeks and 4 days ago
If you want to make some easy money, then try to play Canadian slots at web page. A lot of options how to make first deposit and get welcome bonus + some other cool tips.
daveginger · 56 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: