I am trying to the root directory and the directories immediately below that directory.
Also I need to exclude some directories such as /proc
Here is my attempt to get this to work
for i in `find / ! -path /proc\* -maxdepth 1 `
If I put -maxdepth 1 first I do not exclude /proc
If I put ! -path /proc\* first I do not get the maxdepth of just 1
Redhat Linux 5