DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
sum of output unix
perl -lne '$x += $_; END { print $x; }' < mydatafile or awk '{s+=$1} END {print s}' mydatafile
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#sum
#output
#unix
ADD COMMENT
Topic
COMMENT
Name
9+7 =
Submit