Skip to main content
deleted 3 characters in body
Source Link
JOTN
  • 611
  • 4
  • 7

Use the -o option for an OR. For example, this would list .cpp, .c and .h files:

find . -name \\*\*.cpp -o -name \\*\*.c -o -name \\*\*.h

Use the -o option for an OR. For example, this would list .cpp, .c and .h files:

find . -name \\*.cpp -o -name \\*.c -o -name \\*.h

Use the -o option for an OR. For example, this would list .cpp, .c and .h files:

find . -name \*.cpp -o -name \*.c -o -name \*.h
cleanup
Source Link
iglvzx
  • 23.7k
  • 13
  • 87
  • 124

Use the "-o"-o option for an orOR. This For example, this would list .java.cpp, .c,.c and .cpp.h files:

find . -name \.java -o -name \.c -o -name \*.cpp

find . -name \\*.cpp -o -name \\*.c -o -name \\*.h

Use the "-o" option for an or. This would list .java, .c, and .cpp:

find . -name \.java -o -name \.c -o -name \*.cpp

Use the -o option for an OR. For example, this would list .cpp, .c and .h files:

find . -name \\*.cpp -o -name \\*.c -o -name \\*.h
Source Link
JOTN
  • 611
  • 4
  • 7

Use the "-o" option for an or. This would list .java, .c, and .cpp:

find . -name \.java -o -name \.c -o -name \*.cpp