bash while read line loop from variable
while read -r line
do
echo "line=[$line]"
done < <(cat jj)
bash while read line loop from variable
while read -r line
do
echo "line=[$line]"
done < <(cat jj)
bash read multiple lines from user
# Basic syntax:
read -d "~" -p $'Enter your text (type \"~~\" when done):\n' YOUR_TEXT
# Where:
# - -d tells read to continue reading until the specified delimiter is read.
# Here I use ~ as the delimiter
# - -p indicates what to prompt when the script asks for input. I include a
# message to indicate what to type to stop reading. (I say ~~ because in
# my shell, I always seem to have to press it twice to stop reading)
# - YOUR_TEXT is the bash variable that will get the input text
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us