Skip to content

Instantly share code, notes, and snippets.

@hansgafriedzal
Last active April 22, 2024 10:46
Show Gist options
  • Save hansgafriedzal/e4e32230c02a861740cb5ba91c9afeb6 to your computer and use it in GitHub Desktop.
Save hansgafriedzal/e4e32230c02a861740cb5ba91c9afeb6 to your computer and use it in GitHub Desktop.
$path = 'log.csv'
cat $path | select -First 1 > out.csv
cat $path | select -skip 1 | where {
$log = $_.Split(',')
$ts = [long] $log[0]
$elapsed = [long] $log[1]
Write-Progress -Activity $ts
$elapsed -gt 7000
} | tee -FilePath .\out.csv -Append
Write-Progress -Completed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment