Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
bash add all numbers
Biker
Programming language:
Shell/Bash
2021-06-13 17:36:09
0
Q:
bash add all numbers
J-mster
Code:
Shell/Bash
2021-03-07 01:04:41
awk '{ sum += $1 } END { print sum }' file
0
Tags
number
add
Related
bash print last n lines of file
bash add comma to end of line
bash print lines that dont have a word
bash ls without substring
bash awk how to print specific rows
bash list not
bash return lines from one file that arent in another
bash count number of arguments
bash how to print lines after a matching line
bash count lines
bash print lines that contain multiple specific words
bash print n lines after match
bash pass all arguments
bash print lines unique to one file
bash list of integers
bash count the number of lines that meet condition
New to Communities?
Join the community