Bash Script Pipe Input Processing Output Flowchart