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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -