1) your file's lines 5 and 7 have just two fields.
2) the END pattern action is performed once at the end of the input stream. So it will print out the last line after formatting (not all awk versions have the last line's values persisting).
3) The NF>1 pattern will always be true and thus is redundant (at least for your sample).
4) awk will work on files supplied as parameters; no cat ting and piping necessary.
The first sed statement is used in order to reformat correctly your output especially regarding
LINUX13 and LINUX19 which - i suppose - should be LINUX 13 and LINUX 19 instead (the number must be separated from the string)
Then awk print the line adding the substraction of last-1 field from last field.
The NR>1 is used to skip the header line
I am not sure what the ? is in awk. So far as I was aware it was a conditional operator that means if condition x is true then execute it. Then if it is not true, it executes the next condition. However, in the code
awk '{print $0,(NR>1?$NF-$(NF-1):j)}'
This does not seem to be the case, as isn't it using j as a variable to accumlate a line number? Or am I reading this wrong?