From ff32d2e8a3ddfd4cbc2376cdd6cff1314be17ae2 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 24 Feb 2024 15:52:11 -0800 Subject: add comments about awk f=1 things --- sh/pq | 1 + 1 file changed, 1 insertion(+) (limited to 'sh/pq') 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/' -- cgit v1.2.3-70-g09d2