0

Input file(filename:cat)

item1,200
item2,499
item3,699
item4,800

Awk command which i had tried

awk -F"," '{x+=$2}END{print x}'cat

Error

The above command display empty output.Is it any possible way to overcome with any solutions for it.

govtemp
  • 1
  • 1

1 Answers1

0

Edited and Final command

awk -F"," '{x+=$2}END{print x}' cat
govtemp
  • 1
  • 1