aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@archive.org>2020-12-17 13:57:17 -0800
committerGitHub <noreply@github.com>2020-12-17 13:57:17 -0800
commit7d90a0404e3ecb44c7d0ca93b2c32a0f66b8d88a (patch)
tree987a9ea6b45d7729d071d8504d3ca9c5d3a78fdb
parent37508f3d7cbbbb2cfdf6bcb5bd50a00cf3b0311f (diff)
parent3fb57fa0a6664f03ef48308ed5eba3a1423bd9ff (diff)
downloadfatcat-7d90a0404e3ecb44c7d0ca93b2c32a0f66b8d88a.tar.gz
fatcat-7d90a0404e3ecb44c7d0ca93b2c32a0f66b8d88a.zip
Merge pull request #65 from ibnesayeed/patch-1
Improve status counting efficiency
-rw-r--r--extra/bulk_download/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/bulk_download/README.md b/extra/bulk_download/README.md
index 83b92fd9..19aac432 100644
--- a/extra/bulk_download/README.md
+++ b/extra/bulk_download/README.md
@@ -36,5 +36,5 @@ SHA1, and attempted URL. You can check for errors (and potentially try) with:
Or, count status codes:
- cut -f1 fetch_status.log | sort | uniq -c | sort -nr
+ awk '{s[$1]++} END {for(k in s){print k, s[k]}}' fetch_status.log | sort -nrk2