Awk: Difference between revisions
From DWIKI
mNo edit summary |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
*[http://people.cs.uu.nl/piet/docs/nawk/nawk_23.html An awk manual] | *[http://people.cs.uu.nl/piet/docs/nawk/nawk_23.html An awk manual] | ||
*http://www.dmoz.org/Computers/Programming/Languages/Awk/ | *http://www.dmoz.org/Computers/Programming/Languages/Awk/ | ||
=FAQ= | |||
==Sum list of numbers== | |||
| awk '{sum+=$1} END {print sum}' | |||
[[Category:Scripting]] |
Latest revision as of 10:00, 10 February 2023
Documentation
FAQ
Sum list of numbers
| awk '{sum+=$1} END {print sum}'