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
Post a Comment