1 2 3 4 5 6
#!/bin/sh # Note: we cut last character because output ends with new line OUT="$(email-unread -s | tr "\n" " " | sed 's/ $//')" echo "$OUT" echo "$OUT" echo "#ffff00"