CSC209H5 Chapter Notes - Chapter 1: Exit Status, Emacs, Macos

31 views2 pages

Document Summary

Csc209h5s - software programming and tools (winter 2018) Bash guide for beginners (the following is made for macos using emacs) Chapter 9: for loops for loop allows for a list of commands to be executed for each value in the list. Terminal syntax: for name [ in list]; do commands; done. If [in list] is not present, it is replaced with in and for executed the commands once for each positional parameter that is set. Name can be any variable name, although i is used very often. List can be any list of words, strings or numbers, which can be literal or generated by any. Commands to execute can also be any operating system commands, script, program or command. shell statement. Name is set to the first item in list . Its value is set to the second item in the list. The pattern then repeats itself until . (see below)

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