售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Preface
About the Book
About the Author
Objectives
Audience
Approach
Hardware Requirements
Software Requirements
Installation and Setup
Guidelines and Tips for using the VM
Installing the Code Bundle
Conventions
Additional Resources
Introduction to the Command Line
Introduction
Command Line: History, Shells, and Terminology
History of the Command Line
Command-Line Shells
Command-Line Terminology
Exploring the Filesystem
Filesystems
Navigating Filesystems
Exercise 1: Exploring Filesystem Contents
Manipulating a Filesystem
Exercise 2: Manipulating the Filesystem
Activity 1: Navigating the Filesystem and Viewing Files
Activity 2: Modifying the Filesystem
Shell History Recall, Editing, and Autocompletion
Command History Recall
Exercise 3: Exploring Shell History
Command-Line Shortcuts
Exercise 4: Using Shell Keyboard Shortcuts
Command-Line Autocompletion
Exercise 5: Completing a Folder Path
Exercise 6: Completing a Command
Exercise 7: Completing a Command using Options
Activity 3: Command-Line Editing
Shell Wildcards and Globbing
Wildcard Syntax and Semantics
Wildcard Expansion or Globbing
Exercise 8: Using Wildcards
Activity 4: Using Simple Wildcards
Activity 5: Using Directory Wildcards
Summary
Command-Line Building Blocks
Introduction
Redirection
Input and Output Streams
Use of Operators for Redirection
Using Multiple Redirections
Heredocs and Herestrings
Buffering
Exercise 9: Working with Command Redirection
Pipes
Exercise 10: Working with Pipes
Text-Processing Commands
Shell Input Concepts
Filtering Commands
Exercise 11: Working with Filtering Commands
Transformation Commands
Exercise 12: Working with Transformation Commands
Activity 6: Processing Tabular Data – Reordering Columns
Activity 7: Data Analysis
Summary
Advanced Command-Line Concepts
Introduction
Command Lists
Command List Operators
Using Multiple Operators
Command Grouping
Exercise 13: Using Command Lists
Job Control
Keyboard Shortcuts for Controlling Jobs
Commands for Controlling Jobs
Regular Expressions
Elements
Quantifiers
Anchoring
Subexpressions and Backreferences
Exercise 14: Using Regular Expressions
Activity 8: Word Matching with Regular Expressions
Shell Expansion
Environment Variables and Variable Expansion
Arithmetic Expansion
Brace Expansion
Recursive Expansion with eval
Command Substitution
Process Substitution
Exercise 15: Using Shell Expansions
Activity 9: String Processing with eval and Shell Expansion
Summary
Shell Scripting
Introduction
Conditionals and Loops
Conditional Expressions
Conditional Statements
Loops
Loop Control
Shell Functions
Function Definition
Function Arguments
Return Values
Local Variables, Scope, and Recursion
Exercise 16: Using Conditional Statements, Loops, and Functions
Shell Line Input
Line Input Commands
Internal Field Separator
Exercise 17: Using Shell Input Interactively
Shell Scripts
Shell Command Categories
Program Launch Process
Script Interpreters
Practical Case Study 1: Chess Game Extractor
Understanding the Problem
Exercise 18: Chess Game Extractor – Parsing a PGN File
Exercise 19: Chess Game Extractor – Extracting a Desired Game
Refining Our Script
Exercise 20: Chess Game Extractor – Handling Options
Adding Features
Exercise 21: Chess Game Extractor – Counting Game Moves
Tips and Tricks
Suppressing Command Output
Arithmetic Expansion
Declaring Typed Variables
Numeric for Loops
echo
Array Reverse Indexing
shopt
Extended Wildcards
man and info Pages
shellcheck
Activity 10: PGN Game Extractor Enhancement
Practical Case Study 2: NYC Yellow Taxi Trip Analysis
Understanding the Dataset
Exercise 22: Taxi Trip Analysis – Extracting Trip Time
Exercise 23: Taxi Trip Analysis – Calculating Average Trip Speed
Exercise 24: Taxi Trip Analysis – Calculating Average Fare
Activity 11: Shell Scripting – NYC Taxi Trip Analysis
Summary
Appendix
Chapter 1: Introduction to the Command Line
Activity 1: Navigating the Filesystem and Viewing Files
Activity 2: Modifying the Filesystem
Activity 3: Command-Line Editing
Activity 4: Using Simple Wildcards
Activity 5: Using Directory Wildcards
Chapter 2: Command-Line Building Blocks
Activity 6: Processing Tabular Data – Reordering Columns
Activity 7: Data Analysis
Chapter 3: Advanced Command-Line Concepts
Activity 8: Word Matching with Regular Expressions
Activity 9: String Processing with eval and Shell Expansion
Chapter 4: Shell Scripting
Activity 10: PGN Game Extractor Enhancement
Activity 11: Shell Scripting – NYC Taxi Trip Analysis
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜