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-