I need to add 5 blank space at the beginning into an existing file.
The result now:
1002 9-6-2019 15:44
This is my code right now:
Import-Csv "C:\Users\.csv" |
Select-Object "Person ID", "Time" |
Format-Table -HideTableHeaders -Wrap |
Out-String -Stream |
where {$_} |
foreach { $_.TrimEnd() } |
foreach { $_ + "`t1`t255`t1`t0" } |
Out-File C:\Users\.csv
Final output:
BlankspaceX5 1002 9-6-2019 15:44