次の$ parseから文字列を抽出する必要があります。文字列の配列powershellから文字列を取り出す方法
$parse = select-string -path .\xxx.log "Error" -allmatches –simplematch -context 1
例が含まれています
Start : Error : billing 1150116682 not found - exit. Source : /mnt/xxx/roo/foo/aaa/115565841_yyyyy.pdf ===================================================================================================================================================
私は唯一のソースを抽出必要がありますを/ mnt/XXX/ROO/fooの/ AAA/115565841_yyyyy
私はそれを行うことができますか?
THX
これには部分文字列を使用できます。 –