From 2b7c23d782e5cded466a6880d6859fc648066a3c Mon Sep 17 00:00:00 2001 From: zleyyij Date: Thu, 30 May 2024 17:46:46 -0600 Subject: [PATCH] vault backup: 2024-05-30 17:46:46 --- IT/Scripting.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/IT/Scripting.md b/IT/Scripting.md index 86bcb42..a39f5d7 100644 --- a/IT/Scripting.md +++ b/IT/Scripting.md @@ -1,7 +1,7 @@ ## Marking a script as executable Sometimes, you may need to mark a script as an executable to run it. On Linux, this can be accomplished by `chmod +x [FILE]`, where `[FILE]` is the file you want to mark as executable. To unmark a file as executable, use `chmod -x` -## The shebang +## The Shebang There are various shells with their own language syntax (`sh`, `bash`, `fish`, etc). Therefore, more complicated scripts will indicate a particular shell by specifying the absolute path to the interpreter as the first line, prefixed by `#!` like this: ```sh #!/bin/sh @@ -9,3 +9,5 @@ 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. +## Variables +In bash, variable assignment is done with the `=` operat \ No newline at end of file