capture stdout from another process and use it as input for this script, pipe & filter
stdin= if [ -t 0 ]; then if [ $# -gt 0 ]; then stdin=$@ fi else # how to preserve color? stdin=$(cat "-") fi