Answers for "sum of output unix"

0

sum of output unix

perl -lne '$x += $_; END { print $x; }' < mydatafile
or
awk '{s+=$1} END {print s}' mydatafile
Posted by: Guest on May-13-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language