4 lines
121 B
Bash
Executable file
4 lines
121 B
Bash
Executable file
#!/bin/sh
|
|
paste -sd+ /dev/stdin | sed 's/++/\n/g' | bc | sort -n
|
|
# ./main.sh < input2.txt | tail -3 | paste -sd+ - | bc
|