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