Bash Quick Start Guide
暫譯: Bash 快速入門指南

Tom Ryder

  • 出版商: Packt Publishing
  • 出版日期: 2018-09-28
  • 售價: $1,460
  • 貴賓價: 9.5$1,387
  • 語言: 英文
  • 頁數: 186
  • 裝訂: Paperback
  • ISBN: 1789538831
  • ISBN-13: 9781789538830
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Learn how to write shell script effectively with Bash, to quickly and easily write powerful scripts to manage processes, automate tasks, and to redirect and filter program input and output in useful and novel ways.

Key Features

  • Demystify the Bash command line
  • Write shell scripts safely and effectively
  • Speed up and automate your daily work

Book Description

Bash and shell script programming is central to using Linux, but it has many peculiar properties that are hard to understand and unfamiliar to many programmers, with a lot of misleading and even risky information online. Bash Quick Start Guide tackles these problems head on, and shows you the best practices of shell script programming.

This book teaches effective shell script programming with Bash, and is ideal for people who may have used its command line but never really learned it in depth. This book will show you how even simple programming constructs in the shell can speed up and automate any kind of daily command-line work.

For people who need to use the command line regularly in their daily work, this book provides practical advice for using the command-line shell beyond merely typing or copy-pasting commands into the shell. Readers will learn techniques suitable for automating processes and controlling processes, on both servers and workstations, whether for single command lines or long and complex scripts. The book even includes information on configuring your own shell environment to suit your workflow, and provides a running start for interpreting Bash scripts written by others.

What you will learn

  • Understand where the Bash shell fits in the system administration and programming worlds
  • Use the interactive Bash command line effectively
  • Get to grips with the structure of a Bash command line
  • Master pattern-matching and transforming text with Bash
  • Filter and redirect program input and output
  • Write shell scripts safely and effectively

Who this book is for

People who use the command line on Unix and Linux servers already, but don't write primarily in Bash. This book is ideal for people who've been using a scripting language such as Python, JavaScript or PHP, and would like to understand and use Bash more effectively.

Table of Contents

  1. What is Bash?
  2. Bash Command Structure
  3. Essential Commands
  4. Input, Output, and Redirection
  5. Variables and Patterns
  6. Loops and Conditionals
  7. Scripts, Functions, and Aliases
  8. Best Practices

商品描述(中文翻譯)

學習如何有效地使用 Bash 編寫 shell 腳本,以快速且輕鬆地撰寫強大的腳本來管理進程、自動化任務,以及以有用且新穎的方式重定向和過濾程式的輸入和輸出。

主要特點



  • 揭開 Bash 命令行的神秘面紗

  • 安全且有效地編寫 shell 腳本

  • 加速並自動化您的日常工作

書籍描述


Bash 和 shell 腳本編程是使用 Linux 的核心,但它有許多難以理解且對許多程式設計師來說不熟悉的特性,網上有很多誤導甚至風險的信息。《Bash 快速入門指南》正面解決這些問題,並向您展示 shell 腳本編程的最佳實踐。


本書教授有效的 Bash shell 腳本編程,適合那些可能使用過其命令行但從未深入學習的人。本書將向您展示,即使是 shell 中的簡單編程結構也能加速和自動化任何類型的日常命令行工作。


對於需要在日常工作中定期使用命令行的人,本書提供了超越僅僅在 shell 中輸入或複製粘貼命令的實用建議。讀者將學習適合自動化進程和控制進程的技術,無論是在伺服器還是工作站上,無論是單個命令行還是長且複雜的腳本。本書甚至包括有關配置您自己的 shell 環境以適應您的工作流程的信息,並為解釋他人編寫的 Bash 腳本提供了良好的起點。

您將學到什麼



  • 了解 Bash shell 在系統管理和編程世界中的位置

  • 有效使用互動式 Bash 命令行

  • 掌握 Bash 命令行的結構

  • 精通使用 Bash 進行模式匹配和文本轉換

  • 過濾和重定向程式的輸入和輸出

  • 安全且有效地編寫 shell 腳本

本書適合誰


已經在 Unix 和 Linux 伺服器上使用命令行,但主要不使用 Bash 編寫的人。本書非常適合那些已經使用 Python、JavaScript 或 PHP 等腳本語言的人,並希望更有效地理解和使用 Bash。

目錄



  1. 什麼是 Bash?

  2. Bash 命令結構

  3. 基本命令

  4. 輸入、輸出和重定向

  5. 變數和模式

  6. 循環和條件語句

  7. 腳本、函數和別名

  8. 最佳實踐