bash Cookbook: Solutions and Examples for bash Users (Paperback)

Carl Albing Ph. D., JP Vossen

買這商品的人也買了...

商品描述

For system administrators, programmers, and end users, there are occasions when a simple (or not so simple) shell script can save you time and effort, or facilitate consistency and repeatability for a variety of common tasks. This cookbook provides more than 300 practical recipes for using bash, the popular Unix shell that enables you to harness and customize the power of any Unix or Linux system.

Ideal for new and experienced users alike—including proficient Windows users and sysadmins—this updated second edition helps you solve a wide range of problems. You’ll learn ways to handle input/output, file manipulation, program execution, administrative tasks, and many other challenges. Each recipe includes one or more scripting examples and a discussion of why the solution works.

You’ll find recipes for problems including:

  • Standard output and input, and executing commands
  • Shell variables, shell logic, and arithmetic
  • Intermediate shell tools and advanced scripting
  • Searching for files with find, locate, and slocate
  • Working with dates and times
  • Creating shell scripts for various end-user tasks
  • Working with tasks that require parsing
  • Writing secure shell scripts
  • Configuring and customizing bash

商品描述(中文翻譯)

對於系統管理員、程式設計師和終端使用者來說,有時候一個簡單(或不那麼簡單)的 shell 腳本可以節省您的時間和精力,或者為各種常見任務的一致性和可重複性提供便利。這本食譜書提供了300多個實用的配方,用於使用 bash,這是一個流行的 Unix shell,使您能夠利用和自定義任何 Unix 或 Linux 系統的功能。

這本更新的第二版對於新手和有經驗的使用者都非常理想,包括熟練的 Windows 使用者和系統管理員,它可以幫助您解決各種問題。您將學習處理輸入/輸出、文件操作、程序執行、管理任務和許多其他挑戰的方法。每個配方都包含一個或多個腳本示例以及解決方案為什麼有效的討論。

您將找到以下問題的解決方案:

- 標準輸出和輸入,以及執行命令
- Shell 變量、邏輯和算術
- 中級 shell 工具和高級腳本編寫
- 使用 find、locate 和 slocate 搜尋文件
- 處理日期和時間
- 為各種終端使用者任務創建 shell 腳本
- 處理需要解析的任務
- 編寫安全的 shell 腳本
- 配置和自定義 bash