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.
* または . grep コマンドの最後に、すぐに結果が得られます。ただし、そうしないと、コマンドは何も返しません。
誰かが理由を教えてくれたり、その情報を含む情報源を教えてくれたりするとありがたいです! すべてをオンラインで見ると、検索でピリオドまたはアスタリスクを検索することがすべて語られています。ほとんどの例には * や . が含まれておらず、実際に何をしているのかわかりません。
ありがとう!
検索するファイルのリストがない場合、grep はデフォルトで stdin を読み取ります。例えば
$ grep -o a.. This appears to freeze, but is actually just waiting for input app ars act all ait ^D
ところで、grep のより便利な従兄弟である ack は、期待通りの動作をします。:)