From 36c529d46bd265d142998cc91566f46fbd81ba77 Mon Sep 17 00:00:00 2001 From: zeus Date: Thu, 9 Jul 2020 16:47:00 +0200 Subject: [PATCH] SingleBiggestFileInDeb --- oneliners.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 oneliners.sh diff --git a/oneliners.sh b/oneliners.sh new file mode 100644 index 0000000..e8b7d48 --- /dev/null +++ b/oneliners.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# find single biggest file in an installed deb-pkg: +export PKG=vim; for i in $(dpkg -L PKG) ; do if [[ -f "$i" ]] && [[ ! -L "$i" ]]; then ls -lh1 $i ;fi; done | sort -k 5 -hr | head -1 | cut -d " " -f 5,9-