I have a file, file1, with following values
50
43
43
39
38
I have defined a constant parameter "framei=218" and I want to obtain the following output, file2
218 50
218.5 43
219 43
219.5 39
220 38
will be something like the following
awk '{print NR*'$framei' " " $s}' file1 > file2