Created
June 16, 2023 15:50
-
-
Save joshuashaffer/32e862a28750622c8c1a594b32bc0ad6 to your computer and use it in GitHub Desktop.
Compute Total Amount of LFS
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
git lfs ls-files -s | rev | cut -d'(' -f1 | cut -c2- | rev | sed -e 's;TB;*1024*1024*1024+;' -e 's;MB;*1024*1024+;' -e 's;KB;*1024+;' -e 's;B;+;'|tr -d '\n' | rev | cut -c2- | rev | bc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment