#author("2019-04-16T12:26:29+09:00","default:ryuichi","ryuichi")
#author("2019-04-16T12:40:21+09:00","default:ryuichi","ryuichi")
* マッチしたファイル名を取得する - PowerShell [#ub0acb62]

** CSVのStringで取り出す [#u7bb08b8]
** マッチしたファイル名を取得する [#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