User Tools

Site Tools


braces

If you want to send us your comments, please do so. Thanks
More on comments


Braces in bash

Square braces

The difference between [ and [[ See What's the difference between [ and [[ in Bash?

Curly braces

$ var1=hello
$ var2=also
$ echo $var1
hello
$ echo $(var1)
"bash: var1: command not found" True, round braces are used to catch the result of a command like in **allfiles=$(ls -1)**
$ echo $[var1]
0
$ echo ${var1}
hello
$ echo ${var1}also
helloalso
$ echo ${var1}${var2}
helloalso

Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
braces.txt · Last modified: 19-04-2020 12:20 by wim