17 May
2005
17 May
'05
5:38 p.m.
On Tue, May 17, 2005 at 07:24:08PM -0400, Karl Hiramoto wrote:
I want to list files that end in the number 8-16 if they exist
I'm having problems though with numbers higher than 10.
$ find /dev/vc -name [5-16] /dev/vc/6
I only get 6 back..
Any ideas?
Yeah. [...] indicates a character list, not numbers. So [5-16] means "all characters between ASCII value of '5' and ASCII value of '1' (none, you'd want 1-5, it doesn't work in reverse), and ASCII value of '6'. There's no logic about numbers in globs that I know of, so you have to work this as 5-9 and 10-16. Something like this ought to work: find /dev/vc -name "*[^0-9][5-9]" -o -name "*[^0-9]1[0-6]" -- Randomly Generated Tagline: Look both ways before you cross the network.