SingleBiggestFileInDeb

master
zeus 2020-07-09 16:47:00 +02:00
parent 1257b4cf9d
commit 36c529d46b
1 changed files with 4 additions and 0 deletions

4
oneliners.sh Normal file
View File

@ -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-