Search Results

Search: Posts Made By: brlsubbu
3,176
Posted By rdrtx1
awk -F "|" '{a[$2$3$4$5$6$7]+=$8;}END{for(i in...
awk -F "|" '{a[$2$3$4$5$6$7]+=$8;}END{for(i in a)printf "%s|%.6f\n", i, a[i]}' File1
3,176
Posted By RudiC
Welcome to the forum. For your problem, try ...
Welcome to the forum.

For your problem, try
awk -F "|" '{a[$2$3$4$5$6$7]+=$8;}END{for(i in a)print i"|"a[i];}' CONVFMT="%.6f" file1
ACCT1 XX 00548 02/13/2018 548JN4 L |18.424000
ACCT2 XY ...
Showing results 1 to 2 of 2

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