While in a Linux shell I have a string which has the following contents:
cat dog bird
and I want to pass each item as an argument to another fu
Do like this:
multrs="some multiple line string ... ... ..." while read -r line; do echo $line; done <<< "$mulstrs"
Variable $mulstrs must be enclosed in double quotes, otherwise spaces or carriage returns will interfere with the calculation.