1 2 3 4 5 6
#!/bin/sh icon= unread=$(newsboat -x print-unread | cut -d' ' -f1) [ $unread -gt 0 ] && printf "%s%s" $icon $unread printf "\n"