Quantcast
Channel: nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED)
Viewing all articles
Browse latest Browse all 2612

Awk Find And Replace Fields Values

$
0
0
I have a data as follows : foo bar 12,300.50 foo bar 2,300.50 abc xyz 1,22,300.50 How do I replace all , from 3rd field using awk and pass output to bc -l in the following format to get sum of all numbers: 12300.50+2300.50+1,22,300.50

Read answer to: "Awk Find And Replace Fields Values"

Tweet this   Share on Facebook



Viewing all articles
Browse latest Browse all 2612

Trending Articles