๐”– Scriptorium
โœฆ   LIBER   โœฆ

๐Ÿ“

Mastering Linux shell scripting master the complexities of Bash shell scripting and unlock the power of shell for your enterprise

โœ Scribed by Mallett, Andrew


Publisher
Packt Publishing
Year
2015
Tongue
English
Series
Community experience distilled
Category
Library

โฌ‡  Acquire This Volume

No coin nor oath required. For personal study only.

โœฆ Synopsis


Annotation;Cover ; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: What and Why of Scripting with Bash ; Bash vulnerabilities; The bash command hierarchy; Command type; Command PATH; Preparing text editors for scripting; Configuring vim; Configuring nano; Configuring gedit; Creating and executing scripts; Hello World!; Executing the script; Checking the exit status; Ensuring a unique name; Hello Dolly!; Running the script with arguments; The importance of correct quotes; Printing the script name; Debugging your scripts; Summary.

โœฆ Table of Contents


Cover
Copyright
Credits
About the Author
About the Reviewer
www.PacktPub.com
Table of Contents
Preface
Chapter 1: What and Why of Scripting with Bash
Bash vulnerabilities
The bash command hierarchy
Command type
Command PATH
Preparing text editors for scripting
Configuring vim
Configuring nano
Configuring gedit
Creating and executing scripts
Hello World!
Executing the script
Checking the exit status
Ensuring a unique name
Hello Dolly!
Running the script with arguments
The importance of correct quotes
Printing the script name
Debugging your scripts
Summary. Chapter 2: Creating Interactive Scripts Using echo with options
Basic script using read
Script comments
Enhancing scripts with read prompts
Limiting the number of entered characters
Controlling the visibility of entered text
Enhancing learning with simple scripts
Backing-up with scripts
Connecting to a server
Version 1 --
ping
Version 2 --
SSH
Version 3 --
MySQL/MariaDB
Summary
Chapter 3: Conditions Attached
Simple decision paths using command-line lists
Verifying user input with lists
Using the test shell builtin
Testing strings
Testing integers
Testing file types. Creating conditional statements using ifExtending if with else
More conditions with elif
Creating the backup2.sh using elif
Using case statements
Recipe --
building a front-end with grep
Summary
Chapter 4: Creating Code Snippets
Abbreviations
Using code snippets
Bringing color to the terminal
Summary
Chapter 5: Alternative Syntax
Recapping test
Testing files
Adding logic
Square brackets as not seen before
Providing parameter defaults
Variables
Special parameters
Setting defaults
When in doubt --
Quote!
Advanced test using [[
Whitespace
Other advanced features. Pattern matchingRegular expressions
Regular expression script
Arithmetic operations using ((
Simple math
Parameter manipulation
Standard arithmetic tests
Summary
Chapter 6: Iterating with Loops
For loops
Controlling the loop
While loops and until loops
Reading input from files
Creating operator menus
Summary
Chapter 7: Creating Building Blocks with Functions
Introducing functions
Passing parameters to functions
Returning values from functions
Using functions in menus
Summary
Chapter 8: Introducing sed
Using grep to display text. Displaying received data on an interfaceDisplaying user account data
Listing the number of CPUs in a system
Parsing CSV files
The CSV file
Isolating catalog entries
Using regular expressions
Working with alternate spellings
How many words have four consecutive vowels?
RE anchors
Understanding the basics of sed
Substituting command
Editing the file
Summary
Chapter 9: Automating Apache Virtual Hosts
Apache name-based Virtual Hosts
Creating the Virtual Hosts template
First steps
Isolating lines
sed script files
Automating Virtual Host creation.


๐Ÿ“œ SIMILAR VOLUMES


Mastering Linux shell scripting master t
โœ Mallett, Andrew ๐Ÿ“‚ Library ๐Ÿ“… 2015 ๐Ÿ› Packt Publishing ๐ŸŒ English

Annotation;Cover ; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: What and Why of Scripting with Bash ; Bash vulnerabilities; The bash command hierarchy; Command type; Command PATH; Preparing text editors for scripting; Configuring

Mastering Linux Shell Scripting: Master
โœ Andrew Mallett ๐Ÿ“‚ Library ๐Ÿ“… 2015 ๐Ÿ› Packt Publishing ๐ŸŒ English

Shell scripting is a quick method to prototype a complex application or a problem by automating tasks when working on Linux-based systems. Using both simple one-line commands and command sequences complex problems can be solved with ease, from text processing to backing up sysadmin tools. In this b

Mastering Linux Shell Scripting
โœ Andrew Mallett ๐Ÿ“‚ Library ๐Ÿ“… 2015 ๐Ÿ› Packt Publishing ๐ŸŒ English

<h4>Key Features</h4><ul><li>Identify the high level steps such as verifying user input, using command lines and conditional statements in creating and executing simple shell scripts</li><li>Create and edit dynamic shell scripts to manage complex and repetitive tasks</li><li>Learn about scripting in

Mastering Linux shell scripting a practi
โœ Ebrahim, Mokhtar;Mallett, Andrew ๐Ÿ“‚ Library ๐Ÿ“… 2018 ๐Ÿ› Packt Publishing ๐ŸŒ English

Master the complexities of Bash shell scripting and unlock the power of shell for your enterprise About This Book Identify high-level steps such as verifying user input Using the command line and conditional statements in creating/executing simple shell scripts Create and edit dynamic shell scripts

Mastering Linux Shell Scripting: a pract
โœ Ebrahim, Mokhtar;Mallett, Andrew ๐Ÿ“‚ Library ๐Ÿ“… 2018 ๐Ÿ› Packt Publishing ๐ŸŒ English

Shell scripting is a quick method to prototype a complex application or a problem by automating tasks when working on Linux-based systems. This book will make use of both simple one-line commands and command sequences and complex problems can be solved with ease, from text processing to backing up s