Skip to content

Instantly share code, notes, and snippets.

View jdrowell's full-sized avatar

John D. Rowell jdrowell

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jdrowell on github.
  • I am jdrowell (https://keybase.io/jdrowell) on keybase.
  • I have a public key ASAeubRawA9TPmsLRQVEg4KjQrOZ-cwR984kzGxPIaJ96Ao

To claim this, I am signing this object:

@jdrowell
jdrowell / pacman-q.sh
Created November 18, 2022 11:09
List all packages installed in an Arch Linux based machine, with a short description (pure shell, no Bash required)
#!/bin/sh
pacman -Qi | while read line; do
IFS=':' read -ra p <<< "$line"
case "${p[0]}" in
*Name*) name="${p[1]}" ;;
*Description*) desc="${p[1]}" ;;
"") echo $name - $desc
esac
done