Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Linux Command Line Chapter 25

Similar presentations


Presentation on theme: "The Linux Command Line Chapter 25"— Presentation transcript:

1 The Linux Command Line Chapter 25
Starting A Project Prepared by Dr. Reyes, New York City College of Technology

2 Variables To create a variable use a name and assignment statement and assign a value to it. Leave NO SPACES between the name and the assignment statement No datatype need to be specified, as the shell treats everything as a string name=‘John Smith’ age=19

3 Variable Names Conventions
You may use alphanumeric characters (letter and numbers) and underscore First character must be a letter or underscore Space and special characters are not allowed Software Engineering Considerations: Use Pascal case for variables Use ALL CAPS for constants To read the content of a variable use $ and the variable name i.e. for variable name use $name

4 Hello Johh Smith Replace “John Smith” with your name

5 Variable Assignment

6 Multiple Variable Assignment
Individual lines Same Line:


Download ppt "The Linux Command Line Chapter 25"

Similar presentations


Ads by Google