ops102:bash_scripting_1
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ops102:bash_scripting_1 [2025/03/08 03:05] – [Quoting] chris | ops102:bash_scripting_1 [2025/03/11 15:11] (current) – chris | ||
---|---|---|---|
Line 38: | Line 38: | ||
The current date and time is: | The current date and time is: | ||
Sat Mar 6 12:03:32 EST 2038 | Sat Mar 6 12:03:32 EST 2038 | ||
+ | |||
+ | ===== Comments ===== | ||
+ | |||
+ | A comment in a bash script starts with a sharp symbol (#) and is ignored by the shell interpreter: | ||
+ | |||
+ | < | ||
+ | # written by Jason Bourne</ | ||
+ | |||
+ | A comment may also be just one portion of a line: | ||
+ | |||
+ | < | ||
+ | |||
+ | Note that a shbang line is a comment from the point of view of the shell interpreter -- it's there for the kernel to use, not the shell! | ||
===== Variables ===== | ===== Variables ===== |
ops102/bash_scripting_1.txt · Last modified: 2025/03/11 15:11 by chris