Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
sum of output unix
user58712
Programming language:
Shell/Bash
2021-05-05 19:28:24
0
Q:
sum of output unix
Jerky Jesse
Code:
Shell/Bash
2021-02-28 23:50:13
perl -lne '$x += $_; END { print $x; }' < mydatafile or awk '{s+=$1} END {print s}' mydatafile
0
Tags
sum
Related
Write a shell script to find the sum of first ‘N’ numbers in Fibonacci series
shell count number of lines
convert all line endings to unix
bash delete a range of lines from a file
convert log file with unix timestamp
bash sum floating point numbers
run a command x number of times linux
bash get timestamp
unix time command
bash count the number of lines that meet condition
New to Communities?
Join the community