How to assign a string with multiple spaces to a variable in bash?
-1
votes
3
answers
19253
views
First its not like this question
[How do I echo a string with multiple spaces in bash “untouched”? \[duplicate\]][1] because in that question he just want to print it and I want to assign it to variable and save it.
I've tried this:
SPACE=' '
VAR="$VAR1${SPACE}$VAR2"
Asked by Wissam Roujoulah
(3267 rep)
Dec 3, 2016, 03:20 PM
Last activity: Jan 28, 2025, 10:27 AM
Last activity: Jan 28, 2025, 10:27 AM