bash:files:add_up_the_numbers_at_a_specific_position_in_a_file
BASH - Files - Add up the numbers at a specific position in a file
Add up the numbers at the fifth position (field) of each line.
awk '{ sum += $5 } END { print sum }' filename
bash/files/add_up_the_numbers_at_a_specific_position_in_a_file.txt · Last modified: 2022/06/13 10:12 by peter