I have a shell script that gathers data from a command that is run.
The output is stored in a variable (let us call it .xxx
I want to replace all blank spaces in the variable with a newline so I can run an echo -e
on the data. I attempted to use the following code (along with a set of variations including ' ' and " "), but with no luck:
I threw together a quick sample here of what I'm doing:
qaResult=$(rpm -qa $1)
echo -e $qaParsed
If I put any known pattern maced between //
it works just fine.
Thanks for your time, everyone!