wildcards to list a group of files in sequential numerical order ?

g geleem at bellsouth.net
Mon Nov 7 21:56:29 UTC 2011


On 11/07/2011 05:28 PM, linux guy wrote:
> I'd like to list all the files with names between DSC_6035.NEF  and
> DSC_6072.NEF.
> 
> How do I do this ?

if you can handle a few before and after, use;

  ls DSC_60[37]?.NEF.

if not;

  ls DSC_603[5-9].NEF;ls DSC_60[4-6]?.NEF;ls DSC_607[0-2].NEF

there are some tricks you could use by redirecting to a file and then
listing from file, but that would involve a lot more and you would have
everything in a single column. which would be ok if using 'ls -l'.


hth
-- 

peace out.

tc.hago,

g
.

*please reply "plain text" only. "html text" are deleted*

****
in a free world without fences, who needs gates.
**
help microsoft stamp out piracy - give linux to a friend today.
**
to mess up a linux box, you need to work at it.
to mess up an ms windows box, you just need to *look* at it.
**
The installation instructions stated to install Windows 2000 or better.
So I installed Linux.
**
learn linux:
'Rute User's Tutorial and Exposition' http://rute.2038bug.com/index.html
'The Linux Documentation Project' http://www.tldp.org/
'LDP HOWTO-index' http://www.tldp.org/HOWTO/HOWTO-INDEX/index.html
'HowtoForge' http://howtoforge.com/
****

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 545 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20111107/df13a3ac/attachment-0001.bin 


More information about the users mailing list