Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 29052

A variable is a name, if correctly chosen with a symbolic meaning, that holds a value or values. Use this tag if your question is specific on the use of variables on shell scripting (if you want to ask about variables in programming languages you should probably ask on StackOverflow)

28
votes
Here the issue is that you are surrounding the variable with double quotes (""). Remove it and things will work fine. VAR="This displays with \ extra spaces." echo ${VAR} Output This … displays with extra spaces. Here the issue is that double quoting a variable preserves all white space characters. This can be used in case if you explicitly need it. For example, $ echo "Hello …
answered Oct 24 '14 by Kannan Mohan
2
votes
The array assignment is correct, you should check the printing part. variable="Hello there" array[0]=$variable echo "${array[0]}" output Hello there …
answered Jan 16 '15 by Kannan Mohan