grep -v -A not working properly (actually not working at all)

Posted by Lo'oris on Super User See other posts from Super User or by Lo'oris
Published on 2010-04-17T14:45:37Z Indexed on 2010/04/17 14:53 UTC
Read the original article Hit count: 477

Filed under:
|

I have to filter lines like the following:

[javac] /Users/looris/Sviluppo/android/projects/toutry/src/net/looris/toutry/Stuff.java:23: warning: unmappable character for encoding ascii
[javac]             return (poked=false); // NOTA: è un'assegnazione, non un controllo!
[javac]                                                ^

I've tried |grep -v -A2 "unmappable character for encoding ascii" but it just does nothing.

If I just do |grep -v "unmappable character for encoding ascii" it does filter that line, but I need to filter the following two lines too.

(using "grep (GNU grep) 2.5.1" under OSX 10.5)

© Super User or respective owner

Related posts about grep

Related posts about osx