1 2 3 4 5 6
#!/bin/sh icon= unread=$(ls ~/.mail/gmail/Inbox/new/ | wc -l | cut -w -f2) [ $unread -gt 0 ] && printf "%s%s" $icon $unread printf "\n"