Browse Source

Improve AWK code readability, remove highlighting

master
Sorin Ionescu 12 years ago
parent
commit
d54211832a
  1. 15
      modules/pacman/functions/pacman-list-explicit

15
modules/pacman/functions/pacman-list-explicit

@ -6,6 +6,17 @@ @@ -6,6 +6,17 @@
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
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
}
'

Loading…
Cancel
Save