From 2aac2106df99de70fcc5a0745d437a6b1b479932 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 4 Dec 2020 12:14:57 +0100 Subject: [PATCH] fix typo --- oneliners.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oneliners.sh b/oneliners.sh index b6f84e9..5988a3b 100644 --- a/oneliners.sh +++ b/oneliners.sh @@ -1,7 +1,7 @@ #!/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- +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- # find all links in the fs, that link to a specific target: find / -type l -exec readlink -nf {} ';' -exec echo " -> {}" ';' | grep "/bin/bash"