CSC209H5 Chapter Notes - Chapter 1: Dollar Sign, Tilde, Shell Script

39 views5 pages

Document Summary

Csc209h5s - software programming and tools (winter 2018) Bash guide for beginners (the following is made for macos using emacs) The env or printenv commands can be used to display environment variables. Output will be sorted according to the current locale and displayed in a reusable format. Variable names can be anything but cannot start with digits. To set a variable in the shell, use. To use the variables in other shells, you need to export them export varname= value When the expansion occurs within double quotes, it expands to a single word with the value of each parameter separated by the first character of the ifs special variable. Expands to the positional parameters, starting from one. When the expansion occurs within double quotes, each parameter expands to a separate word. Expands to the number of positional parameters in decimal. Expands to the exit status of the most recently executed foreground pipeline.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents