Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I want to open all mp4 files in a directory, I can simply do something like totem *.mp4. But how can I open all mp4 and all flv files in that directory with one command. I.e. I want to do something like this totem (*.mp4 OR *.flv). What's the easiest way to do this? Perhaps it helps that I am using zsh.

share|improve this question
up vote 5 down vote accepted

Simply call

totem *.mp4 *.flv

Too easy, isn't it ;-)

share|improve this answer
Thanks, indeed, too easy :-) – student Sep 5 '12 at 14:32

Or in a single pattern (with extended_glob):

totem *.(mp4|flv)
share|improve this answer

Or slightly more compact:

totem *.{mp4,flv}
share|improve this answer
+1 This works on bash as well. – user2354329 May 17 '13 at 5:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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