I'm trying to kill and restart pulseaudio in verbose mode, I need to search in the output. I tried to use the pipe to grep the output. After that failed I tried to append the output to a file. I'm doing something wrong.
The kill and start command is
pulseaudio -k && pulseaudio -v
I'm trying to do something like this:
pulseaudio -k && pulseaudio -v | grep conf (pulseaudio -k && pulseaudio -v) > 'aout.txt' pulseaudio -k && (pulseaudio -v > 'aout.txt')
It still just displays the output as it is in the terminal. What am I doing wrong?
Note that I prefer to grep than to append to file.