Skip to main content
added 2 characters in body
Source Link
Stephen Harris
  • 49.4k
  • 7
  • 115
  • 138

This is easy enough in a tool like awk

awk '$2>=6 && $2<20 { tot++ } END { print tot+tot}'

If you want to sum them then

awk '$2>=6 && $2<20 { tot += $2 } END { print tot+tot}'

This is easy enough in a tool like awk

awk '$2>=6 && $2<20 { tot++ } END { print tot}'

If you want to sum them then

awk '$2>=6 && $2<20 { tot += $2 } END { print tot}'

This is easy enough in a tool like awk

awk '$2>=6 && $2<20 { tot++ } END { print +tot}'

If you want to sum them then

awk '$2>=6 && $2<20 { tot += $2 } END { print +tot}'
Rollback to Revision 2
Source Link
Stephen Harris
  • 49.4k
  • 7
  • 115
  • 138

This is easy enough in a tool like awk

awk '$2>=6 && $2<20 { tot++ } END { print +tottot}'

If you want to sum them then

awk '$2>=6 && $2<20 { tot += $2 } END { print tot}'

This is easy enough in a tool like awk

awk '$2>=6 && $2<20 { tot++ } END { print +tot}'

This is easy enough in a tool like awk

awk '$2>=6 && $2<20 { tot++ } END { print tot}'

If you want to sum them then

awk '$2>=6 && $2<20 { tot += $2 } END { print tot}'
deleted 90 characters in body
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113

This is easy enough in a tool like awk

awk '$2>=6 && $2<20 { tot++ } END { print tot}'

If you want to sum them then

awk '$2>=6 && $2<20 { tot += $2 } END { print tot+tot}'

This is easy enough in a tool like awk

awk '$2>=6 && $2<20 { tot++ } END { print tot}'

If you want to sum them then

awk '$2>=6 && $2<20 { tot += $2 } END { print tot}'

This is easy enough in a tool like awk

awk '$2>=6 && $2<20 { tot++ } END { print +tot}'
added 89 characters in body
Source Link
Stephen Harris
  • 49.4k
  • 7
  • 115
  • 138
Loading
Source Link
Stephen Harris
  • 49.4k
  • 7
  • 115
  • 138
Loading