%20sed%20%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF%E3%81%A7%20**%2F*(D.)%20%E3%81%AF%E3%81%A9%E3%81%86%E3%81%84%E3%81%86%E6%84%8F%E5%91%B3%E3%81%A7%E3%81%99%E3%81%8B%EF%BC%9F.png)
ファイルから文字列を検索して置き換える方法で提供されたこのコマンドを見ました。この回答:
sed -i -- 's/foo/bar/g' **/*(D.)
パターンはどういう*/*(D)
意味ですか?名前が何であるかよく分からないのでグーグルができませんね。この部分はsedパラメータの一部ですか、それとzshの一部ですか?ありがとうございます!
答え1
一般名はグローバル予選。zsh
以下のリストがあるのでファイル名の生成文書セクション。
Patterns used for filename generation may end in a list of qualifiers
enclosed in parentheses. The qualifiers specify which filenames that
otherwise match the given pattern will be inserted in the argument list.
特に:
.
plain files
そして
D
sets the GLOB_DOTS option for the current pattern