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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -