The Linux Command Line Chapter 25

Slides:



Advertisements
Similar presentations
Introduction to Programming with Java, for Beginners Primitive Types Expressions Statements Variables Strings.
Advertisements

Linux+ Guide to Linux Certification, Second Edition
1 ABAP BASICS I Northern Arizona University College of Business.
Guide To UNIX Using Linux Third Edition
 2007 Pearson Education, Inc. All rights reserved C Preprocessor.
© The McGraw-Hill Companies, 2006 Chapter 1 The first step.
Week 7 Working with the BASH Shell. Objectives  Redirect the input and output of a command  Identify and manipulate common shell environment variables.
1 The CONST definition CONST Pi = , City = ‘New York’; Constant identifiers are used when you do not want the value of an identifier to change why.
EMT 2390L Lecture 8 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
General Computer Science for Engineers CISC 106 Lecture 04 Dr. John Cavazos Computer and Information Sciences 09/10/2010.
CS465 - UNIX The Bourne Shell.
Chapter 2. C++ Program Structure C++ program is a collection of subprograms Subprograms in C++ are called FUNCTIONS Each function performs a specific.
Computer Engineering 1 st Semester Dr. Rabie A. Ramadan 3.
EMT 2390L Lecture 9 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
ENG College of Engineering Engineering Education Innovation Center 1 Array Accessing and Strings in MATLAB Topics Covered: 1.Array addressing. 2.
Variables and control statements in PL\SQL Chapter 10.
1 STRINGS String data type Basic operations on strings String functions String procedures.
1 09/03/04CS150 Introduction to Computer Science 1 What Data Do We Have.
Chapter 2 print / println String Literals Escape Characters Variables / data types.
Values, Types, and Variables. Values Data Information Numbers Text Pretty much anything.
Variables. Some Rules of Variable Naming Convention : Variable names are case-sensitive. A variable’s name can be any legal identifier. It can contain.
Linux+ Guide to Linux Certification, Second Edition
Session 2: PHP Language Basics iNET Academy Open Source Web Development.
PROGRAMMING USING PYTHON LANGUAGE ASSIGNMENT 1. INSTALLATION OF RASPBERRY NOOB First prepare the SD card provided in the kit by loading an Operating System.
Shell scripts – part 1 Cs 302. Shell scripts  What is Shell Script? “Shell Script is series of command written in plain text file. “  Why to Write Shell.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
13 C Preprocessor.
Bill Tucker Austin Community College COSC 1315
Chapter # 2 Part 2 Programs And data
BASIC ELEMENTS OF A COMPUTER PROGRAM
Visual Basic Variables
© 2016 Pearson Education, Ltd. All rights reserved.
Objectives Identify the built-in data types in C++
Web Programming– UFCFB Lecture 19-20
The Linux Command Line Chapter 14
The Linux Command Line Chapter 16
The Linux Command Line Chapter 2
The Linux Command Line Chapter 29
The Linux Command Line Chapter 6
The Linux Command Line Chapter 10
The Linux Command Line Chapter 7
The Linux Command Line Chapter 18
The Linux Command Line Chapter 27
First Python Program Professor Hugh C. Lauer CS-1004 — Introduction to Programming for Non-Majors (Slides include materials from Python Programming: An.
Unit-1 Introduction to Java
The Linux Command Line Chapter 24
The Linux Command Line Chapter 11
The Linux Command Line Chapter 3
The Linux Command Line Chapter 26
C++ Data Types Data Type
The Linux Command Line Chapter 28
The Linux Command Line Chapter 9
Statements and expressions - java
The Linux Command Line Chapter 17
Chapter # 2 Part 2 Programs And data
The Linux Command Line Chapter 4
Engineering Problem Solving with C++ An Object Based Approach
Engineering Problem Solving with C++ An Object Based Approach
The Linux Command Line Chapter 14
Understanding Variables
C Programming Lecture-3 Keywords, Datatypes, Constants & Variables
Introduction to MATLAB
Variables and Constants
The Linux Command Line Chapter 5
The Linux Command Line Chapter 3
The Linux Command Line Chapter 4
The Linux Command Line Chapter 11
The Linux Command Line Chapter 24
The Linux Command Line Chapter 26
The Linux Command Line Chapter 27
Presentation transcript:

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

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

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

Hello Johh Smith Replace “John Smith” with your name

Variable Assignment

Multiple Variable Assignment Individual lines Same Line: