awk compare files and substract

view story

http://ubuntuforums.org – Hi guys, I want to compare file1 and file2 using awk. And then using the output to file3. file1 4 3 2 file2 5 10 1 So the output in file3 would be 1 7 1 Any idea on how to do this? I'm a newbie:oops: Thx in advance (Hardware)