Shell builtin for retrieving data from stdin. More information: https://manned.org/read.1p.…
Shell builtin for retrieving data from
stdin
. More information: https://manned.org/read.1p.
read {{variable}}
read -a {{array}}
read -n {{character_count}} {{variable}}
read -d {{new_delimiter}} {{variable}}
read -r {{variable}}
read -p "{{Enter your input here: }}" {{variable}}
read -s {{variable}}
stdin
and perform an action on every line:while read line; do echo "$line"; done