我試圖找到文件回車(\r
)和新線(\n
),但下面的兩個語句返回任何內容:轉義字符
Get-ChildItem -recurse | Select-String -pattern "\r" | group path | select name
Get-ChildItem -recurse | Select-String -pattern "\n" | group path | select name
然而,標籤(\t
)轉義字符似乎工作:
Get-ChildItem -recurse | Select-String -pattern "\t" | group path | select name