Created
July 21, 2019 16:44
-
-
Save camusicjunkie/7d7f25c1f3ebbae966493b866267dd34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$files = gci -Recurse -File | |
$files | measure -Property length -Sum -Average | select @{n = 'ComputerName'; e = {$env:COMPUTERNAME}}, Count, Sum, Average, @{n = 'Date'; e = {Get-Date}} |
Absolutely. Go for it! 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there.
I was going through the previous Iron Scripter challenges and thought that I could write some blog posts with walk-throughs for them.
My solution for this challenge used
measure
, but not as efficient as your solution. I was wondering if I could use your solution as the primary example (with attribution, of course) for the post.Thanks!
Dave