Skip to main content
Add a missing space
Source Link
Benjamin Loison
  • 5.7k
  • 4
  • 19
  • 37

The following command will add all the lines  (first field of the awk output)

awk '{s+=$1} END {print s}' filename

The following command will add all the lines(first field of the awk output)

awk '{s+=$1} END {print s}' filename

The following command will add all the lines  (first field of the awk output)

awk '{s+=$1} END {print s}' filename
added 4 characters in body
Source Link
codeforester
  • 43.8k
  • 21
  • 122
  • 159

The following command will add all the lines(first field of the awk output)

awk '{s+=$1} END {print s}' filename

awk '{s+=$1} END {print s}' filename

The following command will add all the lines(first field of the awk output)

awk '{s+=$1} END {print s}' filename

The following command will add all the lines(first field of the awk output)

awk '{s+=$1} END {print s}' filename
Source Link
minhas23
  • 9.8k
  • 6
  • 60
  • 40

The following command will add all the lines(first field of the awk output)

awk '{s+=$1} END {print s}' filename