Adding values of 2 files
Simple question (I think, as I cannot find the answer anywgere).
I have 2 files, with only 1 line each, and need to add the values of both and echo to console:
cat file1
10100
cat file2
20000
I need the total, 30100 to be seen at the end of my script (on both Linux and HP machines)
|