Find the sum of numbers in a text file
baahu
September 30, 2016 No Comments on Find the sum of numbers in a text file
If we have a text file which contains numbers along with other data and we have to find the sum of those numbers , then AWK would come in handy. Ex:file.txt 10,Ajit 20,Sumit 22,Sam 35,john If the file contains above data , we could use AWK to find the sum… Read more »