diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-02-24 15:52:11 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-02-24 15:52:11 -0800 |
commit | ff32d2e8a3ddfd4cbc2376cdd6cff1314be17ae2 (patch) | |
tree | b180e004f48328d59e06c0b3aa4e19386f73a964 | |
parent | 4299615002711bfc2e2ce9477c05dc3839161c50 (diff) |
add comments about awk f=1 things
-rwxr-xr-x | sh/pq | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1,6 +1,7 @@ #!/bin/sh # Pacman Query, to manually determine remove the package or not +# notes about awk f=1 things see https://git.flylightning.xyz/public_archive_codes/tree/sh/mrt [ "$1" ] && { #sed -n '/^Depends On/,/^Conflicts With/{/^Conflicts With/!p}; /^Description\|^URL\|^Groups\|^Installed Size\|^Install Reason/p' pacman -Qi "$1" | awk '/^Groups/{f=1} /^Conflicts With/{f=0} f||/^Description|^URL|^Installed Size|^Install Reason/' |