Computing.Net > Forums > Programming > awk calculation

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

awk calculation

Reply to Message Icon

Name: Vontelok
Date: February 22, 2009 at 13:57:14 Pacific
OS: Linux i686
Subcategory: Batch
Comment:

Can anyone point me in the right direction how to get the next calculation in awk script between each field of the file: (file2.field2 - file1.field2) / (file1.field2/100)

I have two files, like these:
file1:
1 100 200 333
2 200 333 444
3 500 666 777
4 800 999 222

file2:
1 111 222 333
2 222 333 444
3 555 666 777
4 888 999 222

I tried several solutions but did not manage :(



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Please help me with Struc... taking count of log files...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: awk calculation

awk script -need help www.computing.net/answers/programming/awk-script-need-help/16037.html

Compare files with AWK www.computing.net/answers/programming/compare-files-with-awk/15182.html

awk help plz! www.computing.net/answers/programming/awk-help-plz-/10495.html