Comment on Some people just can't place themselves

<- View Parent
joyjoy@lemmy.world ⁨1⁩ ⁨year⁩ ago

Is your issue about just syntax?

for part in $text; do
  echo "xX$partXx"
done

In bash, this loops over each word in a variable. If you want each line, you’ll need to use a while read loop instead.

while read -r line; do
  echo "xX$lineXx"
done <<< "$text"

source
Sort:hotnewtop