From: Ian Kelling Date: Sun, 30 Jun 2019 19:21:25 +0000 (-0400) Subject: minor fixes X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=7494ae4746d84ba3d28a84b995190e2ca2fd04e5;p=small-misc-bash minor fixes --- 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"