How can I exclude the current working directory (CWD) with find?
Consider my current working directory to contain the following directories (ls .):
a b c d e f g
Find command: find . -maxDepth 1 -type d will return:
.
./a
./b
./c
./d
./e
./f
./g
I tried the answer from here (How to exclude a directory in find . command): find . -maxdepth 1 -type d -path . -prune -false
While I can use ls I'd be curious how I could achieve the same with find.
So the expected output from a find command should be similar to the ls . output:
./a
./b
./c
./d
./e
./f
./g