Search Results

Search: Posts Made By: muazfarooqaslam
2,404
Posted By muazfarooqaslam
i tried following but its not working, awk...
i tried following but its not working,

awk '{ arr[$1]=arr[$1]+$2} { for (i in arr) print i,arr[i] } ' file1 file2

i was not sure how to deal with 3 columns, so i only tried working with 2 i.e....
2,404
Posted By muazfarooqaslam
[SOLVED] Handling multiple files using awk
Hi,
I am trying to process 2 files simultaneously using awk satisfying following condition,

Both files contain 3 columns. It should take entry from column 1 from first file, look for that entry...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 12:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy