2017-03-03 11 views
0

* .cpp、* .c、* .hファイルは、最後に変更された時刻とバイト単位のサイズで検索しようとしていますが、何も表示しない...more -nameパラメータでfindを使用することはできませんlinux

find . -name \*.c\* -o -name \*.h -printf "%s %p %t\n" 

何も表示されないのはなぜですか?

+1

StackOverflowのは、人々が自分のプログラミングコードを修正する手助けについてです。 http://stackoverflow.com/help/how-to-ask、http://stackoverflow.com/help/dont-ask、http://stackoverflow.com/help/mcveを読んで[ツアー]( http://stackoverflow.com/tour)よりQを投稿してください。がんばろう。 – shellter

答えて

0

括弧を追加する必要があります。

find . \(-name \*.c\* -o -name \*.h \) -printf "%s %p %t\n" 

参考:https://linux.die.net/man/1/find

+0

ありがとうございます!作品。 – Marius

関連する問題