15 lines
187 B
Bash
Executable file
15 lines
187 B
Bash
Executable file
#!/bin/bash
|
|
meow=()
|
|
sum=0
|
|
|
|
while read line; do
|
|
if [[ "$line" == '' ]]; then
|
|
meow+=($sum)
|
|
sum=0
|
|
else
|
|
sum=$((sum+line))
|
|
fi
|
|
done
|
|
|
|
echo ${meow[@]} | tr ' ' '\n' | sort -n | tail -n1
|