Linux Shell Scripting Essentials

Sinny Kumari

  • 出版商: Packt Publishing
  • 出版日期: 2015-11-19
  • 售價: $2,170
  • 貴賓價: 9.5$2,062
  • 語言: 英文
  • 頁數: 282
  • 裝訂: Paperback
  • ISBN: 1785284444
  • ISBN-13: 9781785284441
  • 相關分類: LinuxCommand Line
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Learn shell scripting to solve complex shell-related problems and to efficiently automate your day-to-day tasks

About This Book

  • Familiarize yourself with the terminal by learning about powerful shell features
  • Automate tasks by writing shell scripts for repetitive work
  • Packed with easy-to-follow, hands-on examples to help you write any type of shell script with confidence

Who This Book Is For

This book is aimed at administrators and those who have a basic knowledge of shell scripting and who want to learn how to get the most out of writing shell scripts.

What You Will Learn

  • Write effective shell scripts easily
  • Perform search operations and manipulate large text data with a single shell command
  • Modularize reusable shell scripts by creating shell libraries
  • Redirect input, output, and errors of a command or script execution to other streams
  • Debug code with different shell debugging techniques to make your scripts bug-free
  • Manage processes, along with the environment variables needed to execute them properly
  • Execute and embed other languages in your scripts
  • Manage creation, deletion, and search operations in files

In Detail

Shell scripting is a quick method to prototype complex applications or problems. Shell scripts are a collection of commands to automate tasks, usually those for which the user has a repeated need, when working on Linux-based systems. Using simple commands or a combination of them in a shell can solve complex problems easily.

This book starts with the basics, including essential commands that can be executed on Linux systems to perform tasks within a few nanoseconds. You'll learn to use outputs from commands and transform them to show the data you require. Discover how to write shell scripts easily, execute script files, debug, and handle errors.

Next, you'll explore environment variables in shell programming and learn how to customize them and add a new environment. Finally, the book walks you through processes and how these interact with your shell scripts, along with how to use scripts to automate tasks and how to embed other languages and execute them.

商品描述(中文翻譯)

學習shell腳本編寫,解決複雜的shell相關問題,並有效地自動化日常任務。

關於本書
- 通過學習強大的shell功能,熟悉終端機操作
- 通過編寫shell腳本自動化重複性工作
- 提供易於理解且實用的實例,幫助您自信地編寫各種類型的shell腳本

適合對shell腳本有基本了解並希望深入了解如何充分利用編寫shell腳本的管理員和使用者。

您將學到什麼
- 輕鬆編寫有效的shell腳本
- 使用單個shell命令執行搜索操作並操作大型文本數據
- 通過創建shell庫將可重用的shell腳本模塊化
- 將命令或腳本執行的輸入、輸出和錯誤重定向到其他流
- 使用不同的shell調試技術調試代碼,使腳本無錯誤
- 管理進程以及執行進程所需的環境變量
- 在腳本中執行和嵌入其他語言
- 管理文件的創建、刪除和搜索操作

詳細內容
Shell腳本是快速原型化複雜應用程序或問題的方法。Shell腳本是一系列命令,用於自動化任務,通常是用於Linux系統上的重複性需求。在shell中使用簡單的命令或它們的組合可以輕鬆解決複雜的問題。

本書從基礎知識開始,包括在Linux系統上執行的基本命令,以在幾納秒內執行任務。您將學習使用命令的輸出並將其轉換為所需的數據。了解如何輕鬆編寫shell腳本,執行腳本文件,進行調試和處理錯誤。

接下來,您將探索shell編程中的環境變量,並學習如何自定義它們並添加新的環境。最後,本書將引導您了解進程以及這些進程如何與shell腳本交互,以及如何使用腳本自動化任務以及如何嵌入其他語言並執行它們。