Skip to content

Instantly share code, notes, and snippets.

@bcdady bcdady/group-files.ps1
Last active Jan 30, 2016

Embed
What would you like to do?
User PowerShell to List files in a folder, Group by extension, sorted in descending order by most common extension(s)
# -Recurse is optional
Get-ChildItem -Path $env:USERPROFILE\Downloads -Recurse | Group-Object -Property Extension | sort -Descending -Property Count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.