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

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -