Library Hours
Monday to Friday: 9 a.m. to 9 p.m.
Saturday: 9 a.m. to 5 p.m.
Sunday: 1 p.m. to 9 p.m.
Naper Blvd. 1 p.m. to 5 p.m.
     
Limit search to available items
43 results found. Sorted by relevance | date | title .
Results Page:  Previous Next
Author Mallett, Andrew, author.

Title Mastering Linux shell scripting : master the complexities of Bash shell scripting and unlock the power of shell for your enterprise / Andrew Mallett. [O'Reilly electronic resource]

Publication Info. Birmingham : Packt Publishing, 2015.
QR Code
Description 1 online resource : illustrations
text file
Series Community experience distilled
Community experience distilled.
Note Includes index.
Summary Annotation Master the complexities of Bash shell scripting and unlock the power of shell for your enterpriseAbout This Book Identify the high level steps such as verifying user input, using command lines and conditional statements in creating and executing simple shell scripts Create and edit dynamic shell scripts to manage complex and repetitive tasks Learn about scripting in Perl and programming in Python as a BASH scripting alternative with this practical, step-by-step guideWho This Book Is ForMastering Linux Shell Scripting has been written for Linux administrators who want to automate tasks in their daily lives, saving time and effort. You'll need to have command-line experience and be familiar with the tasks that you need to automate. What You Will Learn Use the type command to identify the order of command evaluation Create interactive scripts that prompt for user input Foster menu structures for operators with little command-line experience Develop scripts that dynamically edit web configuration files to produce a new virtual host Write scripts that use AWK to search and reports on log files Draft effective scripts using functions as building blocks, reducing maintenance and build time Make informed choices by comparing different script languages such as Perl and Python with BASHIn DetailShell 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 book, you'll discover everything you need to know to master shell scripting and make informed choices about the elements you employ. Get to grips with the fundamentals of creating and running a script in normal mode, and in debug mode. Learn about various conditional statements' code snippets, and realize the power of repetition and loops in your shell script. Implement functions and edit files using the Stream Editor, script in Perl, program in Python as well as complete coverage of other scripting languages to ensure you can choose the best tool for your project. Style and approachThe book will capture your attention and keep you engaged with the simplicity and clarity of each explanation. Every step is accompanied with screen captures so you can cross-check the results before moving on.
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.
Subject Linux.
UNIX (Computer file)
UNIX Shells.
Linux
UNIX (Computer file)
UNIX Shells
Other Form: Print version: Mallett, Andrew. Mastering Linux Shell Scripting. Birmingham : Packt Publishing, ©2015
ISBN 9781784397593 (electronic bk.)
1784397598 (electronic bk.)
1784396974
9781784396978
Standard No. 9781784396978
Patron reviews: add a review
Click for more information
EBOOK
No one has rated this material

You can...
Also...
- Find similar reads
- Add a review
- Sign-up for Newsletter
- Suggest a purchase
- Can't find what you want?
More Information