Skip to content

Instantly share code, notes, and snippets.

@goyuix
Created July 6, 2012 03:17
Show Gist options
  • Save goyuix/3057873 to your computer and use it in GitHub Desktop.
Save goyuix/3057873 to your computer and use it in GitHub Desktop.
Add file size to CSV in PowerShell - merge in size/length from filesystem
gc J:\private\wbfs\DecoderRing.txt |
ConvertFrom-Csv -Delimiter "`t" |
% {
Add-Member -InputObject $_ -MemberType NoteProperty -Name Length -Value (dir $_.ID).Length -Passthru
} | Export-Csv J:\decoder.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment