Quantcast
Channel: d0wn
Viewing all articles
Browse latest Browse all 73

space char directly after var in bash

$
0
0

In bash space is used to determine the end of a variable ,

for example when you launch

this will display abcd ef ,if you try to to display abcdef you cant do echo $varef

the solution to this little problem is : is to use curly brackets.


will display abcdef

Viewing all articles
Browse latest Browse all 73

Trending Articles