From 7494ae4746d84ba3d28a84b995190e2ca2fd04e5 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 30 Jun 2019 15:21:25 -0400 Subject: [PATCH] minor fixes --- ex | 8 +++++++- psg-function | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ex b/ex index cd9bd78..0ef26c4 100755 --- a/ex +++ b/ex @@ -36,7 +36,13 @@ Note: dtrx (package & command) extracts most of these plus some others." *.xz) xz -d "$x" ;; *.7z ) 7za x "$x" ;; *.bz2 ) bunzip2 "$x" ;; - *.deb ) ar x "$x" ;; + *.deb ) + ar x "$x" + tar Jxf data.tar.xz + tar xzf control.tar.gz + rm -f control.tar.gz + rm -f data.tar.xz + ;; *.dsc) dpkg-source -x "$x" ;; *.gz ) gunzip "$x" ;; *.iso ) diff --git a/psg-function b/psg-function index ccdd12a..bdef351 100644 --- a/psg-function +++ b/psg-function @@ -23,7 +23,7 @@ grep ps and output in a nice format" fi x=$(sudo ps -eF) # final grep is because some commands tend to have a lot of trailing spaces - y=$(echo "$x" | grep -P "$@" | grep -o '.*[^ ]') + y=$(echo "$x" | grep -iP "$@" | grep -o '.*[^ ]') if [[ $y ]]; then echo "$x" | head -n 1 echo "$y" -- 2.30.2