Input file:
2
5
7
1
2
Modifier file (external file):
4
6
2
7
9
What i want to achieve is, summarizing line1 from input file with line1 from an external file.
AWK script:
sum=$1+[value of line 1 on modifier file];
printf("%s\n", sum);
expected output:
6
11
9
8
11
Layed down simply what OP wants to do is:
say you want your output file to be like this:
in which case the external file has 4 lines of text which are:
and the awk script is