From e192e5730679c0824f92f3b0960514ec9d45c153 Mon Sep 17 00:00:00 2001 From: ericlay Date: Tue, 18 Apr 2023 19:48:55 -0500 Subject: [PATCH] small logical update --- fpf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fpf b/fpf index 01feee3..5415ab2 100755 --- a/fpf +++ b/fpf @@ -35,9 +35,7 @@ UpdateAurInfos() { jq --compact-output '.[] | { Name, Description } ' | awk -F'"' '{ printf "%-20s\t%s\n", $4, $8}' > /tmp/aur/packages-meta - while IFS= read -r pkgName; do - grep -w "^$pkgName " /tmp/aur/packages-meta >> /tmp/aur/installed - done < <(pacman -Qqm) + parallel grep -w "^{} " /tmp/aur/packages-meta ">>" /tmp/aur/installed < <(pacman -Qqm) sort <(comm -23 <(cat /tmp/aur/packages-meta | sort) <( cat /tmp/aur/installed | sort)) <(comm -12 <( cat /tmp/aur/packages-meta | sort) <(cat /tmp/aur/installed | sort) | awk -F"\t" '{print $1" \033[32m*\033[0m ", $2}') -o /tmp/aur/packages-meta }