We’ll try to stay in the project root if possible.
Find all non-hidden files to know the file structure.
$ find -path './.*' -prune -o -type f -print
./Algo-init.iml
./out/production/Algo-init/fr/eql/ai114/algo/init/demo/_1_HelloWorld.class
./src/fr/eql/ai114/algo/init/demo/_1_HelloWorld.java
-
-prune
returns true for the chosen path and preventsfind
from descending. -
-o
means OR, so the paths matching-prune
won’t pass through-o
. -
-type f
selects files, not folders. -
By default, AND is used to connect different conditions.
[Read More]