# if your RS [RecordSeparator] is NL [by default]
lines2skip=7;
for (i=1; i <= lines2skip; i++)
getline; vlad
+---------------------------+
|#include<disclaimer.h> |
+---------------------------+
The next statement reads the next input record and starts again at the first pattern in the awk script, so your second solution will not work. Your getline solution works fine, of course. CaKiwi
I'm sure it was a deliberate error just to see if anyone was paying attention or perhaps to let them have a feeling of smug satisfaction when they pointed it out. CaKiwi
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.