#!/bin/sh # Get package count count=$(sed '/^$/d' ~/.cache/updates | wc -l) # Display count printf "%s\n\n" "count|int|$count"