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

Patrick O'Callaghan pocallaghan at gmail.com
Mon Nov 7 19:17:13 UTC 2011


On Mon, 2011-11-07 at 10:28 -0700, 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 ?
> 
> I tried using DSC_[6035-6072].NEF, but that doesn't work. It lists
> files outside the desired range.

[6035-6072] means "any single character equal to one of
6,0,3,5,'lexically between 5 and 6 inclusive',6,0,7,2".

IOW any single character in the set {0,2,3,5,6,7}.

poc



More information about the users mailing list