Fix log formatter

This commit is contained in:
Samuele E. Locatelli
2019-03-11 14:00:17 +01:00
parent 11658ec214
commit 221d88253c
+2 -2
View File
@@ -11,5 +11,5 @@ param([string] $file = "SOUR.log")
# leggo file # leggo file
Get-Content $file | Get-Content $file |
# sostituisco 2 volte x i 2 item # sostituisco 2 volte x i 2 item
ForEach-Object { $_ -replace "([\w|\W]+)T(\w+)[.](\w+)[.](\w+)[.](\w+)", '$1T$2:$3:$4:$5' } | ForEach-Object { $_ -replace "([\w|\W]+)T(\w+)[.](\w+)[.](\w+)[.](\w+)", '$1T$2:$3:$4.$5' } |
ForEach-Object { $_ -replace "([\w|\W]+)T(\w+)[.](\w+)[.](\w+)[.](\w+)", '$1T$2:$3:$4:$5' } | Out-file -encoding UTF8 fix_$file ForEach-Object { $_ -replace "([\w|\W]+)T(\w+)[.](\w+)[.](\w+)[.](\w+)", '$1T$2:$3:$4.$5' } | Out-file -encoding UTF8 fix_$file