text/sumsizes.py
- 356 bytes
- Python
- View raw
1#!/usr/bin/env python3
2"""
3Given a list of numbers on stdin, add them together and print the result
4as a human-readable data size.
6Example:
8 echo -e '100 \n 201287 \n 3190817' | sumsizes
10"""