Originally posted by: TonyRic
find 0 . filename.foo -maxdepth
What the error means is that options MUST come after all path/file information. eg, at the end of the command line
Originally posted by: cleverhandle
tppytel@timaeus:~$ rm -rf test
tppytel@timaeus:~$ mkdir test
tppytel@timaeus:~$ cd test
tppytel@timaeus:~/test$ mkdir subdir
tppytel@timaeus:~/test$ touch apple pear grape1 grape2 subdir/peach subdir/grape3
tppytel@timaeus:~/test$ ls -R
.:
apple grape1 grape2 pear subdir
./subdir:
grape3 peach
tppytel@timaeus:~/test$ find * -name "grape*" -maxdepth 0
grape1
grape2
tppytel@timaeus:~/test$
edit: Ow... too much bold...