Whats wrong with this?
for i in {0..16};do
awk '/foo/ {while (getline > 0); print $0}' ${array[$i]} >> lines.txt;done
I thought “The expression “getline > 0″ will be true as long as getline successfully reads an input line. When it gets to the end-of-file, getline returns 0 and the loop is exited.”
I want to print out every line after the one containing “foo”. I get something similar to what I want with the lines above but its not correct.
Take out the semicolon.
Or