• 追加された行はこの色です。
  • 削除された行はこの色です。
#author("2019-04-16T12:21:19+09:00","default:ryuichi","ryuichi")
#author("2019-04-16T12:40:21+09:00","default:ryuichi","ryuichi")
* マッチしたファイル名を取得する - PowerShell [#ub0acb62]

** マッチしたファイル名を取得する [#fbe883df]

 PS> rg -l foo
 
 1.txt
 2.txt
 a\3.txt

** カンマ区切りのStringで取り出す [#u7bb08b8]

 PS> (rg -l -0 foo) -Replace "\0",","
 
 1.txt,2.txt,a\3.txt,

** 配列で取り出す [#a6a0077d]

 PS> $array = (rg -l -0 foo) -Split "\0",","
 PS> $array[1]
 
 2.txt

** 参考 [#b372cc61]

https://github.com/BurntSushi/ripgrep/blob/master/doc/rg.1.txt.tpl


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS