Created
March 15, 2024 18:19
-
-
Save camsaul/06f0e0d806ae6547fe29837613a5c18d to your computer and use it in GitHub Desktop.
Biggest files
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
#! /usr/bin/env bash | |
set -euo pipefail | |
for file in `find . -type f -name '*.clj' -or -name '*.cljc' -or -name '*.cljs'`; do \ | |
wc -l "$file" | | |
perl -ne 'my @parts = /(^\d+)\s(.*$)/; printf("%05d %s\n", $parts[0], $parts[1]);' | |
done | | |
sort -r | | |
head -n 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment