#!/bin/bash UPDATE_PKGS=$(pacman -Qu | grep -v "\[ignored\]" | wc -l) ALL_PKGS=$(pacman -Q | wc -l) echo "${UPDATE_PKGS}/${ALL_PKGS}"