-
How to add whitespaces into variable, bash ?
Hello,
i dont want to store variables in separate file,
i want to have in script something like:
variable="some phrasse
other phrasse
this is \"third\" phrasse"
for phrasse in $variable;do
echo $phrasse
done
and i want FOR loop to work with whole phrasses including spaces, not to treat spaces as separators. Please how to do it?
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|