From d54211832a6ce1a31fa8cc4868f39c71152b40d1 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sat, 30 Jun 2012 15:54:51 -0400 Subject: [PATCH] Improve AWK code readability, remove highlighting --- modules/pacman/functions/pacman-list-explicit | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/modules/pacman/functions/pacman-list-explicit b/modules/pacman/functions/pacman-list-explicit index a61eb94..5e545d0 100644 --- a/modules/pacman/functions/pacman-list-explicit +++ b/modules/pacman/functions/pacman-list-explicit @@ -6,6 +6,17 @@ # Sorin Ionescu # -sudo pacman --query --explicit --info $(pacman --query --upgrades | cut -d' ' -f 1) \ - | awk ' BEGIN {FS=":"}/^Name/{printf("\033[1;36m%s\033[1;37m", $2)}/^Description/{print $2}' +sudo pacman --query --explicit --info \ + $(pacman --query --upgrades | cut -d' ' -f 1) \ + | awk ' + BEGIN { + FS=":" + } + /^Name/ { + print $2 + } + /^Description/ { + print $2 + } + '