Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- awk '{i+=$0; if (!$0){print i; i=0;}}' < input | sort -rn | head -1
- awk '{i+=$0; if (!$0){print i; i=0;}}' < input | sort -rn | head -3 | awk '{i+=$0} END{print i}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement