Reputation: 57
I have a project organized as follows:
file1.c
SubfolderA/
[... files]
Arch/
HAL.c
x86_64/[...]
arm64/[...]
I would like to use the recursive find
command to print all files, except all the sub Arch/[architecture] folders BUT one architecture (say, arm64). And I would like to include
So here, the output would be file1.c subfolderA/[all files] Arch/HAL.c Arch/arm64/[all files]
Is that even possible ? The closest I've got is find . -type f -not -path "./Arch/*" -or -path "./Arch/arm64/*"
, but that doesn't include HAL.c
Upvotes: -1
Views: 11