Skip to content

Instantly share code, notes, and snippets.

@jdolitsky
Created July 27, 2023 03:30
Show Gist options
  • Select an option

  • Save jdolitsky/8fe4c6b8bd953b43092d6d205a1b1f06 to your computer and use it in GitHub Desktop.

Select an option

Save jdolitsky/8fe4c6b8bd953b43092d6d205a1b1f06 to your computer and use it in GitHub Desktop.

Revisions

  1. jdolitsky created this gist Jul 27, 2023.
    1 change: 1 addition & 0 deletions top_10_files.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    top_10_files() { crane export $1 --platform linux/amd64 | tar -tvf - | awk -v size="$size" '$5 >= size {print $5" "$9}' | sort -nrk1.2 | head -n10 | numfmt --to=iec-i --suffix=B --format="%9.2f"; }