Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在のディレクトリの下にあるファイルを使用して、すべての* .cppを検索しようとしてfindいます。このファイルには、dirnameとbasenameのどちらにもスペースが含まれていません。フラグを使用する必要があることは理解して-wholenameいますが、適切な正規表現構文が見つかりません。
find
-wholename
Use find with a regex:
find . -type f -regex "[^ ]*.cpp"