Quote:
Originally Posted by jlliagre
Try that one:
Code:
sed 's/"N" [^]]*]//'
|
that makes sense... couldn't think how to get the first ']' after the '"N"'.. of course it makes perfect sense once it's been spelled out.
Thanks!
... err... edit... if we modify the file a bit, this method stops working. i.e.:
----------------
begin
foo [good 89 98 89 8 78 76 56 56 8 ]
"N" [bad 987 78 69 9 6
889 89 0 90 890 9 ] "other" [good 09890 7890 89 89 89 90 90 ]
jkak
asj
-----------------
it should work in either case.