I have $LIST variable that contains few lines and some of the lines has spaces, but I need to take that as one vs two arguments inside of my loop, how would I do that?
\#!/bin/bash
LIST="test1
test 2"
for i in $LIST; do
echo $i;
done
this will produce me 3 lines, but I want it to produce 2 as test1 on first line and test 2 on second
#!/bin/bashor#! /bin/bashon some ancient UNIXen