grep -v -A not working properly (actually not working at all)
- by Lo'oris
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)