View Single Post
Posts: 78 | Thanked: 109 times | Joined on Jan 2012 @ Washington State
#60
Originally Posted by Addison View Post
Thanks!

Okay, once last thing, how do I string these all together?

llib pianobar -u | sed 's/|> //' | sed -u 's/ "//' | grep -v "(i) Receiving new playlist... Ok." | grep -v "Station"

Am I using the pipe command correctly?
It's a little needless. Easier would be to put these four lines:

s/|> //
s/"//g
/Receiving new playlist/d
/Station/d

In one file, say "filter.sed". Then run pianobar as:
llib pianobar | sed -u -f filter.sed

I don't think pianobar looks at its command line arguments, so I left off that -u you had put for pianobar.

Andy
 

The Following 2 Users Say Thank You to vandys For This Useful Post: