VirtualTam's bookmarks
7 bookmarks found
Page 1 of 1
-
1# GNU sed 2sed -e 's/\x1b\[[0-9;]*m//g' 3 4# macOS 5sed -e $'s/\x1b\[[0-9;]*m//g'
-
- awk: https://www.gnu.org/software/gawk/manual/html_node/Bracket-Expressions.html
- grep: https://www.gnu.org/software/grep/manual/html_node/Character-Classes-and-Bracket-Expressions.html
- sed: https://www.gnu.org/software/sed/manual/html_node/Character-Classes-and-Bracket-Expressions.html
- tr: https://man7.org/linux/man-pages/man1/tr.1p.html
-
- https://stackoverflow.com/questions/10622179/how-to-find-identify-large-commits-in-git-history
- https://stackoverflow.com/questions/223678/which-commit-has-this-blob
1git rev-list --objects --all \ 2| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \ 3| sed -n 's/^blob //p' \ 4| sort --numeric-sort --key=2 --reverse \ 5| head -n 150 \ 6| cut -c 1-12,41- \ 7| $(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
-
aka "Cavemen sysadmins"
Page 1 of 1