Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 856 Bytes

ch4.md

File metadata and controls

36 lines (19 loc) · 856 Bytes

Chapter 4. Introduction to Variables and Parameters

第四章:變數與參數

Table of Contents

目錄

4.1. Variable Substitution

變數替換

4.2. Variable Assignment

變數指派

4.3. Bash Variables Are Untyped

Bash 變數是沒有特定類型的

4.4. Special Variable Types

特殊變數類型

Variables are how programming and scripting languages represent data.

變數就是程式與腳本語言的「資料」。

A variable is nothing more than a label, a name assigned to a location or set of locations in computer memory holding an item of data.

變數就像標籤一樣,標籤名稱指向一個或一組在電腦記憶體中特定位置。

Variables appear in arithmetic operations and manipulation of quantities, and in string parsing.

變數通常會出現在做數學運算及做字串處理時