View Single Post
  #4 (permalink)  
Old 09-Jul-2009, 10:41
ken_yap ken_yap is online now
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,230
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Shell script, Amarok currently playing.. need some help

I would also add that you should avoid calling qdbus multiple times. It's easy enough to save the output in a shell variable and then grep that. Or pipe the output to a script which will do the parsing in one pass.
Reply With Quote