Bài giảng lập trình shell

106 290 0
Bài giảng lập trình shell

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

LẬP TRÌNH SHELL Nội dung Lập trình shell Đặc trưng script Cấu trúc shell-script Create File & Run Script Review commands Parameter & Variables  Parameter   Entity that stores values type  positional parameters    special parameters   arguments present on command line referenced by number set by shell to store info about aspects of current state Variable   identified by a name Contain values Positional Parameters Giá trị default tham số File Name Expansion Options   six shell options that affect way in which file names are expanded shopt command  -s enable  -u disable Ex: various globbing options nullglob failglob dotglob extglob   five new file name expansion operators are added pattern-list is a list of pipe-separated globbing patterns   parentheses, which are preceded by ?, *, +, @, or ! Ex  remove existing files in $HOME/globfest, create a new set Example nocaseglob globstar  allows use of ** to descend recursively into directories &subdirectories looking for matching files review ...Nội dung Lập trình shell Đặc trưng script Cấu trúc shell- script Create File & Run Script Review commands Parameter & Variables... parameters    special parameters   arguments present on command line referenced by number set by shell to store info about aspects of current state Variable   identified by a name Contain values

Ngày đăng: 03/12/2015, 18:19

Từ khóa liên quan

Mục lục

  • LẬP TRÌNH SHELL

  • Nội dung

  • Lập trình bằng shell

  • Đặc trưng của script

  • Cấu trúc shell-script

  • Create File & Run Script

  • Review commands

  • Parameter & Variables

  • Positional Parameters

  • Giá trị default của tham số

  • Shift

  • Slide 12

  • Khác nhau giữa * và @

  • Biến tiền định nghĩa

  • Lệnh nội trú

  • Echo

  • Echo – ví dụ

  • Example for ouput’s format

  • Result

  • Read

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan