DJanGo wrote: 
> and this should give you only the wanted output.
> > 
Code:
--------------------
  >   > curl 'http://127.0.0.1:9000/jsonrpc.js' --data-binary 
'{"id":1,"method":"slim.request","params":["",["info","total","songs","?"]]}'|cut
 -d '_' -f2- |cut -d ':' -f2|cut -d '}' -f1
--------------------
> > 

Nice! Somebody who still knows how to use UNIX command line tools! I
might have used awk... :)



"To try to judge the real from the false will always be hard. In this
fast-growing art of 'high fidelity' the quackery will bear a solid gilt
edge that will fool many people" - Paul W Klipsch, 1953
------------------------------------------------------------------------
Julf's Profile: http://forums.slimdevices.com/member.php?userid=42050
View this thread: http://forums.slimdevices.com/showthread.php?t=104757

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to