linux - how to skip two lines and delete two lines till the end of file in vim? -


I want to leave two rows and delete two lines at the end of the file

if my file Includes

  111 222 333 444 555 666 777 888 999 1010 1111   

I want to modify it to see it

    awk     "post-text" itemprop = "text"> 

< / Code> p>

  awk 'nr% 4 == 1 || NR% 4 == 2 'file 111 222 555 666 99 9 1010   

NR% 4 == 1 print line 1,59 etc. NR % 4 == 2 print line 2,6,10 etc. - So this line gives 1,2 5,6 9, 19


Other editions: awk 'NR% 4 ~ / ^ [12] $ /' #JCI ???? Awk '(NR-1)% 4 & lt; 2 '# Ed Morton

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -