Grep or egrep to exclude text in a line -
I would like some advice on how to exclude one word in a line using grep, but still the line Will I continue?
So I have tried:
grep -v '1.942134' results.tbl | Egrep '* .fits' results.tbl
to try to list all the strings with the exception, but excludes "1.942134" in the sentence, but it still Gives the whole line.
Any advice?
or you awk
awk '/. .ht; & Amp; Amp; ! / 1 \ .942134 / `results.tbl
The PS should protect you from .
in both sed
and awk
or otherwise it means only any character.
Comments
Post a Comment