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
4pfyvq9l8r.skadnetwork | |
yclnxrl5pm.skadnetwork | |
v72qych5uu.skadnetwork | |
tl55sbb4fm.skadnetwork | |
t38b2kh725.skadnetwork | |
prcb7njmu6.skadnetwork | |
ppxm28t8ap.skadnetwork | |
mlmmfzh3r3.skadnetwork | |
klf5c3l5u5.skadnetwork | |
hs6bdukanm.skadnetwork |
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
# Based on answer from Yuval here: https://askubuntu.com/a/1214458/687179 | |
# output pairs in the format: `filename size`. | |
# I used `nawk` because it's faster. | |
find . -type f -print0 | xargs -0 stat -f'%N %z' | awk ' | |
{ | |
split($1, a, "."); # first token is filename | |
ext = a[length(a)]; # only take the extension part of the filename | |
size = $2; # second token is file size | |
total_size[ext] += size; # sum file sizes by extension | |
} |