'Find' newb; looking for feedback

Working with examples from a text I found online not quite getting the results I want. Hoping I could have someone look at them and give me some feedback.

Find is set to display contents of subdirectories correct? How do you repress that?

find ~ -size +9500k -mtime -7

This should display all files in my home directory greater than 9500 kb and modified within 7 days? I'm making the assumption we can work with k, M, G for sizes?

find /www/data[10-99] -group www

Not working just yet, I can assign a wildcard to data directories but I'm trying to limit to a range [10-99] only displays info from /www/data10/

Thanks for your constructive feedback.

Yes you can use regex to limit the data dirs that find searches by using what you have...

find /www/data[10-99]

This will search all dirs starting from /www/data10 all the way to /www/data99...so what is the issue you are having.

I created dir www/data1-99 and thru in a bunch of empty files, the results of that only shows files in the /www/data1/ and ignores the other directories.

That maybe because the other dirs arent owned by group "www".

why wouldn't they? they were all created at the same time by the same user

Shell globbing doesn't work that way. brackets specify character ranges, not integer ranges. So:

find /www/data[1-9][0-9] -group www

and if I wanted to exceed 100 i'd just have to add another [0-9]?

---------- Post updated at 03:16 PM ---------- Previous update was at 03:07 PM ----------

For data[1-9][0-9] I get no so file or directory. :wall:

Why not show exactly what you typed -- word for word, letter for letter, keystroke for keystroke? Because it does work.

$ find asdf/[1-9][0-9]
asdf/10
asdf/11
asdf/12
...
asdf/99
$

Hrrm pretty sure that's what I was typing I finally used find for the directory and -exec'd it to another find for the group. Ill have to check when I get home. Thanks for all your help!