BASH SCRIPTING
==============
The virtual Bash interpreter runs a bounded script from your current virtual
directory. Start with a text file and run it with:
bash <file>
For example, create greet.sh with nano, add these lines, then save:
LABEL="shift notes"
echo "$LABEL for $USER on $HOSTNAME"
Give the file execute permission and run it:
chmod +x greet.sh
bash greet.sh
The current virtual user needs read and execute permission. Scripts support
variable assignments, supported virtual-shell commands, and if/else blocks.
They do not run on the host operating system.
LANGUAGE REFERENCE
------------------
- Use help variables to assign values, expand names, and learn about built-in
variables.
- Use help conditionals for if statements, file tests, and string comparisons.
- Use help <command> for the supported command list and each command's syntax.
SCRIPT LIMITS
-------------
- Up to 64 lines and 16 KiB per script.
- Up to eight nested if blocks.
- The complete script is checked before its first command runs.
MERIDIAN DATA SYSTEMS // SCRIPTING
bash-scripting
No topics match that search.