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
Post a Comment