Read stdin and perform an action on every line

read

while read line; do echo "$line"; done

click the source code to copy install read on any operating system with command-not-found.com