Advertisement
Dj_Dexter

moc_titulo.sh

Apr 22nd, 2012
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3.   a=2
  4.  
  5.   TITULO="`mocp -i|awk '/SongTitle/ {print $'$a'}'`"
  6.  
  7.   while [ "$TITULO" != "" ]; do
  8.  
  9.     TITULO="`mocp -i|awk '/SongTitle/ {print $'$a'}'`"
  10.  
  11.     a=$[$a+1]
  12.  
  13.     echo -n "$TITULO"
  14.  
  15.   done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement