Created
June 23, 2012 22:12
-
-
Save scintill/2980281 to your computer and use it in GitHub Desktop.
get count of unique files in directory
This file contains hidden or 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
#!/bin/bash | |
# the number of files, including any duplicates, is: ls -l | wc -l | |
sha256sum * | cut -d ' ' -f 1 | sort -u | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment