One more AWK question
After spending roughly 4 hours playing with awk I am stuck for the second time on something that I think I am over thinking this.
Determine how many lines are in your datafile. Then use the head, tail, and awk statements to print just the Character's birth year for the middle five data lines. Add these 5 lines to your output file.
ok so I have 13 lines in this file...
So I know that head is the first 10 of a file and tail is the last 10; so using these I am not sure how to tell it to hit those middle 4 lines, been reading and such and I just can't find it. There being 13 lines means theres 3 outside the head and 3 outside the tail... If anyone could touch on how you would use these commands to pull strings out of the middle I would greatly appreciate it, in the mean time I'll keep looking.