diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-03-27 21:18:44 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-03-27 21:18:44 -0700 |
commit | 455be15c7f7048ec69791c2649c4d55f67642ce7 (patch) | |
tree | ab341c3010ff815d272983a7c12d0b6cf604e2b9 /home | |
parent | 4957916f8de9320bc29a13eaa4f324dade742082 (diff) |
more comments
Diffstat (limited to 'home')
-rwxr-xr-x | home/xyz/.local/bin/mrt | 1 | ||||
-rwxr-xr-x | home/xyz/.local/bin/pq | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/mrt b/home/xyz/.local/bin/mrt index 883ab8f0..f370b48d 100755 --- a/home/xyz/.local/bin/mrt +++ b/home/xyz/.local/bin/mrt @@ -25,6 +25,7 @@ mullvad relay update # https://stackoverflow.com/q/39384283/9008720 # https://stackoverflow.com/a/38972737/9008720 # https://stackoverflow.com/a/17988834/9008720 +# https://unix.stackexchange.com/q/63891/459013 for relay in $(mullvad relay list | awk -v location="$location" ' $0 ~ location {f=1;next} /^\t[[:alpha:]]/ {f=0} diff --git a/home/xyz/.local/bin/pq b/home/xyz/.local/bin/pq index d5f2fa29..2c4356c1 100755 --- a/home/xyz/.local/bin/pq +++ b/home/xyz/.local/bin/pq @@ -2,7 +2,8 @@ # Pacman Query, to manually determine remove the package or not [ "$1" ] && { - pacman -Qi "$1" | awk '/^Depends On/{f=1} /^Conflicts With/{f=0} f || /^Description/ || /^URL/ || /^Groups/ || /^Installed Size/ || /^Install Reason/' + #sed -n '/^Depends On/,/^Conflicts With/{/^Conflicts With/!p}; /^Description\|^URL\|^Groups\|^Installed Size\|^Install Reason/p' + pacman -Qi "$1" | awk '/^Depends On/{f=1} /^Conflicts With/{f=0} f||/^Description|^URL|^Groups|^Installed Size|^Install Reason/' printf '\n' pacman -Ql "$1" | grep '/bin/[^$]' printf '\n' |