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.
走る
man gcc | grep "-L"
私は得る
Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information.
どうすれば試合をgrepできますか?
man gcc | grep -- "-L"
引数 "--" に注意してください。これは、「後に続くものをオプションとして扱わない」ことを意味します。
また、エラー メッセージのアドバイスに従って「grep --help」を実行すると、-e / --regexp オプションを使用して明示的にパターンを設定できることも示されます。
man gcc | grep -e "-L" man gcc | grep --regexp="-L"