Created
November 18, 2018 15:06
-
-
Save stesee/5fff7ad1b436e8086c7778e3318d6766 to your computer and use it in GitHub Desktop.
powershell snippet deletes files duplicated files by comparing their hash
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
ls *.txt -recurse | get-filehash | group -property hash | where { $_.count -gt 1 } | % { $_.group | select -skip 1 } | del |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment