diskdiddler
Wizard
- Joined
- Jul 9, 2014
- Messages
- 2,377
I'm reading some documentation and I'll be damned if I can get the find command to work for me.
Let's say I know I have a directory something like this
/mnt/array/media/pics/holidays/hawaii/fun.jpg
and this
/mnt/array/media/pics/holidays/spain/fun.jpg
I specifically want to find ALL folders which contain the words "array" and "pics" in the path (I just do, ok, sorry)
I've tried the following, doesn't seem to work
find / -name '*array*pics*'
find / -name 'array*pics*'
find / -name '*array*pics*.*'
find / -path '*array*pics*'
find / -name 'array*pics*'
find / -name '*array*pics*.*'
I'll be damned if I know what I'm doing wrong here, anyone got some tips?
Let's say I know I have a directory something like this
/mnt/array/media/pics/holidays/hawaii/fun.jpg
and this
/mnt/array/media/pics/holidays/spain/fun.jpg
I specifically want to find ALL folders which contain the words "array" and "pics" in the path (I just do, ok, sorry)
I've tried the following, doesn't seem to work
find / -name '*array*pics*'
find / -name 'array*pics*'
find / -name '*array*pics*.*'
find / -path '*array*pics*'
find / -name 'array*pics*'
find / -name '*array*pics*.*'
I'll be damned if I know what I'm doing wrong here, anyone got some tips?