vault backup: 2024-05-30 17:48:46
This commit is contained in:
parent
9bdbc4da23
commit
aa41e0d492
@ -10,4 +10,11 @@ echo "Hello, World!"
|
|||||||
`#!/bin/sh` means that this script can be executed by the binary located at `/bin/sh`, and so the reader knows this is a `sh`(ell) script.
|
`#!/bin/sh` means that this script can be executed by the binary located at `/bin/sh`, and so the reader knows this is a `sh`(ell) script.
|
||||||
|
|
||||||
## Variables
|
## Variables
|
||||||
In bash, variable assignment is done with the `=` operator. Variables are conventionally named with `SCREAMING_SNAKE_CASE`, and can be accessed by prefixing the variable name with a dollar sign ()
|
In bash, variable assignment is done with the `=` operator. Variables are conventionally named with `SCREAMING_SNAKE_CASE`, and can be accessed by prefixing the variable name with a dollar sign (`$`):
|
||||||
|
```bash
|
||||||
|
#!/bin/bash
|
||||||
|
# There may not be any spaces
|
||||||
|
# Assignment is done with the equal sign (=) operator:
|
||||||
|
MY_VARIABLE="
|
||||||
|
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user