Open multiple firefox tabs from command line
Oops. I just found the answer. You need to add a -url
after each `-new-tab'.
firefox -new-tab -url https://www.evernote.com/Home.action -new-tab -url http://www.gmail.com
Now it works. Hope this can help somebody.
You no longer need to add -url
, simply write firefox
followed by space-separated URLs.
Example:
firefox mail.google.com askubuntu.com stackoverflow.com
Create a file containing list of URLs called url.txt
:
http://www.url1.xxx
http://www.url2.xxx
http://www.url3.xxx
Firefox uses the new-tab command, so you could pass the URLs in the file to the browser like so:
xargs -a url.txt firefox -new-tab "$line"