Awk: Difference between revisions
From DWIKI
mNo edit summary |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
*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]] | [[Category:Scripting]] |
Latest revision as of 10:00, 10 February 2023
Documentation
FAQ
Sum list of numbers
| awk '{sum+=$1} END {print sum}'