linux - Concatenate 2 parameters in a find expression -


i want write command display .c , .cpp files computer.

i know can use find -name how can concatenate parms find both file extensions.

right have:

find -name "*.cpp" 

alternative solution

find -regex '.*\.\(c\|cpp\)' 

in way can avoid multiple -o logic condition (as requested in herrserker answer


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -