I want to note that it is in fact ";" not a space, which
a new file named <old-name>-new.txt, the first line must
contain year and temperature separated by a space, also to
transfer the rows in which year interval is 2007-2013 and
temperature interval is 28-35. I am stuck at this problem
for several hours, i know how to solve the problem with awk
if there were more columns, not 1. Sorry for bad English.
If this is not a homework assignment, please also tell us what operating system you're using and what shell you're using. (The capabilities provided by awk vary somewhat from system to system and it wastes our time and yours if we make suggestions that won't work on your system.)
Also please give us a sample input file (including its filename) and the output you hope to produce from that input file (including its filename). It would be a good idea to have sample that input would test all of the conditions your code is supposed to use to determine whether or not a line of input should be copied to the output. (And, remember to surround the sample input and output with CODE tags.)
There is not one column, there are three. Note that with awk, the separator can be any string. It doesn't need to be a string of spaces. See the -F option of awk.