My dotfiles for my Linux rice managed with stow and make
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

music 260B

1234567891011
  1. #!/bin/bash
  2. full=`cat ~/.nowplaying`
  3. if [ "$full" != "" ]; then
  4. title=`echo "$full"|cut -d '-' -f 1|cut -d ' ' -f 2-|xargs -0`
  5. artist=`echo "$full"|cut -d '-' -f 2|xargs -0`
  6. output=`echo "${title} by ${artist}"`
  7. echo $output
  8. else
  9. echo ""
  10. fi