#!/usr/bin/env bash set -e set -u my_input=$(cat) echo "$my_input" | while read my_line; do echo "$my_line" done