Learning Linux Shell Scripting Second Edition

Ganesh Naik

  • 出版商: Packt Publishing
  • 出版日期: 2018-05-17
  • 定價: $1,520
  • 售價: 9.0$1,368
  • 語言: 英文
  • 頁數: 332
  • 裝訂: Paperback
  • ISBN: 1788993195
  • ISBN-13: 9781788993197
  • 相關分類: LinuxCommand Line
  • 立即出貨 (庫存=1)

相關主題

商品描述

Unleash the power of Shell scripts to solve real-world problems by breaking through the practice of writing tedious code

Key Features

  • Learn how to efficiently and effectively build shell scripts and develop advanced applications with this handy book
  • Develop high quality and efficient solutions by writing professional and real-world scripts, and debug scripts by checking and shell tracing
  • A step-by-step tutorial to automate routine tasks by developing scripts from a basic level to very advanced functionality

Book Description

Linux is one of the most powerful and universally adopted OSes. Shell is a program that gives the user direct interaction with the operating system. Scripts are collections of commands that are stored in a file. The shell can read this file and act on the commands as if they were typed on the keyboard. Shell scripting is used to automate day-to-day administration tasks and for testing or product development activities.

This book covers Bash, GNU Bourne Again SHell, preparing you to work in the exciting world of Linux shell scripting. We start with an introduction to the Shell environment and explain basic commands used in Shell. Next, we move on to check, kill or control the execution of processes in Linux OS. Further, we teach you about the filter tools available in Linux and explain standard output and standard errors devices. As compared to last editions, we have used CentOS distribution instead of Ubuntu Distribution. Linux Shell Scripting is independent of Linux Distributions, but we have tried to educate reader for both the types of distros.Then we will ensure, you understand Shell's interpretation of commands and get a firmer grasp so you use them in practice. Next, you'll experience some real-world essentials such as debugging and perform Shell arithmetic fluently. Then you'll take a step ahead and learn new and advanced topics in Shell scripting, such as starting up a system and customizing a Linux environment. We will also learn about grep, Stream Editor, and Awk, which are very powerful text filters & editors.

Finally, you'll get to understand the capabilities of scripting and learn about using other language scripts such as Python, Pearl, Ruby scripts in Shell Scripts as well as you learn accomplishing Database administration tasks for databases such as MySQL & Oracle

What You Will Learn

  • Familiarize yourself with the various text filtering tools available in Linux
  • Combine the fundamental text and file processing commands to process data and automate repetitive tasks
  • Understand expressions and variables and how to use them practically
  • Automate decision-making and save a lot of time and effort of revisiting code
  • Get to grips with advanced functionality such as using traps and signals and using dialogs to develop screens
  • Start up a system and customize a Linux system
  • Take an in-depth look at regular expressions and pattern matching to understand the capabilities of scripting
  • Use existing other language scripts such as Python, Pearl & Ruby in Shell Scripts
  • Automate database administration tasks for various databases such as MySQL, Oracle and similar

Who This Book Is For

This book is ideal for those who are proficient at working with Linux and who want to learn about shell scripting to improve their efficiency and practical skills.

By the end of this book, you will be able to confidently use your own shell scripts in the real world

商品描述(中文翻譯)

發揮 Shell 腳本的威力,解決現實世界的問題,打破繁瑣編寫程式碼的慣例。

主要特點:

- 學習如何高效地構建 Shell 腳本並開發高級應用程式。
- 通過編寫專業且實用的腳本,開發高質量且高效的解決方案,並通過檢查和 Shell 追蹤來調試腳本。
- 逐步教程,從基礎級別到非常高級的功能,自動化例行任務的開發腳本。

書籍描述:

Linux 是最強大且普遍被採用的操作系統之一。Shell 是一個讓用戶直接與操作系統進行交互的程序。腳本是存儲在文件中的命令集合。Shell 可以讀取此文件並根據命令執行操作,就像在鍵盤上輸入一樣。Shell 腳本用於自動化日常管理任務以及測試或產品開發活動。

本書涵蓋了 Bash、GNU Bourne Again SHell,讓您準備好在令人興奮的 Linux Shell 腳本世界中工作。我們從介紹 Shell 環境並解釋 Shell 中使用的基本命令開始。接下來,我們轉向檢查、終止或控制 Linux 操作系統中進程的執行。此外,我們還教您有關 Linux 中可用的過濾工具,並解釋標準輸出和標準錯誤設備。與上一版相比,我們使用了 CentOS 發行版而不是 Ubuntu 發行版。Linux Shell 腳本獨立於 Linux 發行版,但我們試圖教育讀者了解兩種類型的發行版。然後,我們將確保您理解 Shell 對命令的解釋,並更好地掌握它們的實際應用。接下來,您將體驗一些現實世界的基本知識,例如調試和流暢地執行 Shell 算術。然後,您將邁出一步,學習 Shell 腳本中的新的高級主題,例如啟動系統和自定義 Linux 環境。我們還將學習 grep、流編輯器和 Awk,這些都是非常強大的文本過濾器和編輯器。

最後,您將了解腳本的功能,並學習如何在 Shell 腳本中使用其他語言腳本,例如 Python、Pearl、Ruby 腳本,同時學習完成 MySQL 和 Oracle 等數據庫管理任務。

您將學到什麼:

- 熟悉 Linux 中各種文本過濾工具。
- 結合基本的文本和文件處理命令來處理數據並自動化重複任務。
- 理解表達式和變量以及如何實際使用它們。
- 自動化決策並節省大量時間和精力,避免重複編寫代碼。
- 熟悉高級功能,例如使用陷阱和信號以及使用對話框開發界面。
- 啟動系統並自定義 Linux 系統。
- 深入研究正則表達式和模式匹配,了解腳本的功能。
- 在 Shell 腳本中使用現有的其他語言腳本,例如 Python、Pearl 和 Ruby。
- 自動化各種數據庫管理任務,例如 MySQL、Oracle 等。

適合閱讀對象:

本書適合那些熟練使用 Linux 並希望通過學習 Shell 腳本來提高效率和實踐技能的人。

通過閱讀本書,您將能夠自信地在現實世界中使用自己的 Shell 腳本。