I'm trying to run two large sort processes simultaneously. So far, I've been unable to run one of these processes in the background.
Here's what I'm doing:
Get-Content $attfile |Sort-Object {
[datetime]::ParseExact($_.Substring(0, 23), 'dd/MM/yyyy HH:mm:ss.fff', $null)
} | out-file -filepath "$new" -Encoding ascii
Get-Content $navfile | Sort-Object {
[datetime]::ParseExact($_.Substring(0, 23), 'dd/MM/yyyy HH:mm:ss.fff', $null)
} 2> $null | out-file -filepath "$navnew" -Encoding ascii
I would like to run the first sort in the background so that I don't have to wait for the first sort to finish. How can I do this? I find the powershell documentation of Start-Job very confusing.