summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-02-24 15:52:11 -0800
committerXiao Pan <gky44px1999@gmail.com>2024-02-24 15:52:11 -0800
commitff32d2e8a3ddfd4cbc2376cdd6cff1314be17ae2 (patch)
treeb180e004f48328d59e06c0b3aa4e19386f73a964
parent4299615002711bfc2e2ce9477c05dc3839161c50 (diff)
add comments about awk f=1 things
-rwxr-xr-xsh/pq1
1 files changed, 1 insertions, 0 deletions
diff --git a/sh/pq b/sh/pq
index bad9c35..3ff4829 100755
--- a/sh/pq
+++ b/sh/pq
@@ -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/'