Advertisement
Guest User

Untitled

a guest
May 29th, 2012
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. if [ ! -x /usr/bin/cmus-remote ];
  2. then
  3. echo "cmus is not installed."
  4. exit
  5. fi
  6.  
  7. TITLE=$( cmus-remote -Q 2>/dev/null | grep title | cut -d " " -f 3- )
  8.  
  9. if [ -z "$TITLE"];
  10. then
  11. echo " "
  12. else
  13. echo "$TITLE"
  14. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement