Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Open many web pages at once via the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open many web pages at once via the Terminal
Authored by: swimboy on Jan 31, '05 11:17:03AM

An even easier way to do this is to just use:

open `pbpaste`

The backticks (shift-tilde) causes the shell to evaluate the contents before executing the rest of the command.



[ Reply to This | # ]
Open many web pages at once via the Terminal
Authored by: d1taylor on Jan 31, '05 12:29:17PM

Or you could use the "normalized standard notation" rather than backticks:

open $(pbpaste)

:-)



[ Reply to This | # ]
Open many web pages at once via the Terminal
Authored by: oink on Jan 31, '05 07:39:24PM

open $(pbpaste) is interesting and I want to know more.

It doesn't seem to work for me in tcsh, returns "tcsh: Illegal variable name."...

---
blurred visionary



[ Reply to This | # ]
Open many web pages at once via the Terminal
Authored by: kholburn on Feb 01, '05 06:42:58AM

Yeah, it doesn't work in tcsh only bash. (I'm not sure about zsh: I don't use it.)



[ Reply to This | # ]
xargs is better than `...` or $(...)
Authored by: alys on Feb 01, '05 05:41:53PM
It's easier to use open `pbpaste` but it's not as reliable. Using backticks (or $(...) in bash) will fail if you have too many arguments (in this case, too many URLs). I'm not sure what "too many" is; it is a reasonably large limit though, so in practice `...` will generally work. However, xargs will always work - it knows how to handle very large numbers of arguments. It's worth letting yourself get familiar with xargs.

[ Reply to This | # ]