On Tue, 7 Sep 2021, nagari pratap wrote:

Please try this command

find . -type f \( -name "*.x" -and -name "f*.x" \)


This is the approach i have been using so far.

Please see below.

find `pwd` -type f \( -iname "*.h" -o -iname "*.hpp" -o -iname "*.c" -o -iname "*.cc" -o -iname "*.cpp" -o 
-iname "*.s" -o -iname "*.y" -o -iname "*.l" \) | sort | xargs etags -a

what i'd like to do is to improve it further, ie. using '-prune' primary since 
the file 'f*.x' may be found all the following directories.

alpha/  arm/    csky/   hexagon/  Kconfig  microblaze/  nds32/  openrisc/  
powerpc/  s390/  sparc/  x86/
arc/    arm64/  h8300/  ia64/     m68k/    mips/        nios2/  parisc/    
riscv/    sh/    um/     xtensa/

what i want to accomplish is to skip all directories except 'x86'.

Thanks everyone who helped out.


warm regards
Saifi.

Reply via email to