BASH redirect & grep -v help needed

dave selby dave6502 at googlemail.com
Wed Feb 18 20:44:02 UTC 2009


Hi All,

I am trying to get the standard output and error streams to be
filtered so that any output with the string 'saved as' is discarded
and the rest is appended to /home/dave/kmotion2/www/motion_output
Me and BASH just do not get on, I have tried

motion -c /home/dave/kmotion2/core/motion_conf/motion.conf &> | grep
-v 'saved as' >> /home/dave/kmotion2/www/motion_output
bash: syntax error near unexpected token `|'

Any idea how to make this work

Cheers

Dave

-- 

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




More information about the ubuntu-users mailing list