Bash Script Pipe Input Mapper