Let’s say I have the following Bash script:
while read SCRIPT_SOURCE_LINE; do echo \"$SCRIPT_SOURCE_LINE\" done
I noticed that for files
Instead of read, try to use GNU Coreutils like tee, cat, etc.
from stdin
readvalue=$(tee) echo $readvalue
from file
readvalue=$(cat filename) echo $readvalue