trying to print selected fields of selected lines by AWK

I am trying to print 1st, 2nd, 13th and 14th fields of a file of line numbers from 29 to 10029. I dont know how to put this in one code. Currently I am removing the selected lines by
awk 'NR==29,NR==10029' File1 > File2

and then doing

awk '{print $1, $2, $13, $14}' File2 > File3

Can somebody tell me how to combine this in one code?:confused:

awk 'NR>=29  && NR<=10029 {print $1, $2, $13, $14}' File1 > File2

thanks Franklin......the code worked....i wish i knew it was so easy to combine both with the && in between.....thanks a lot :slight_smile:

The expressions you were using originally would work as well:

awk 'NR==29,NR==10029 {print $1, $2, $13, $14}' File1 > File2

Regards,
Alister