I want to retrieve a number from an external file and then pass this number into an awk script. Within the awk script I want then to increment the variable by 10 each time an input record (from a different file) is processed. This variable will assume the position of field 1 after awk processes the record. Also how can I loop through the input file until the end of file is reached.