[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash 1 liner help



Lance Hoffmeyer wrote:
I have a set of files:


05file.ogg
06file.0gg
07file.0gg
08file 1.ogg
09This file 2.ogg
10 This is a file 3.ogg
11 another file.ogg
12 file.ogg
13 file.ogg

I wish to play only the file 08-12*.ogg.
If I wanted to play files 07-09 I would
do something like

mplayer 0[7-9]*.ogg

How can I use regular expressions to play files
08-12?


Lance


If that is really the complete set of files you could do 'mplayer [01][0-27-9]*.ogg', but usually you just do 'mplayer 0[7-9]*.ogg 1[0-2]*.ogg'.

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: