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

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

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

google shop client API returns 400 bad request error while adding an item -