Use the shell globbing syntax: grep pattern -r --include=\*.cpp --include=\*.h rootdir. The syntax for --exclude is identical.
確定! 回上一頁