Jump to ratings and reviews

Mastering Linux Shell Scripting

Master the complexities of BASH shell scripting to unlock the full power of shell for your enterprise

About This BookIdentify the high level steps such as verifying user input, using command lines and conditional statements in creating and executing simple shell scriptsCreate and edit dynamic shell scripts to manage complex and repetitive tasksLearn 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 LearnUse the type command to identify the order of command evaluationCreate interactive scripts that prompt for user inputFoster menu structures for operators with little command-line experienceDevelop scripts that dynamically edit web configuration files to produce a new virtual hostWrite scripts that use AWK to search and reports on log filesDraft effective scripts using functions as building blocks, reducing maintenance and build timeMake 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.

223 pages, Paperback

Published December 24, 2015

Loading...
Loading...

About the author

Andrew Mallett

22 books2 followers

Ratings & Reviews

What do you think?

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
3 (21%)
4 stars
4 (28%)
3 stars
5 (35%)
2 stars
2 (14%)
1 star
0 (0%)
Displaying 1 - 4 of 4 reviews
Profile Image for Ietrio.
7,004 reviews24 followers
April 8, 2016
Nice book. Nothing special. Everything in there and much much more already available online for free. But here you pay for the paper.
Profile Image for Miguel.
5 reviews1 follower
October 9, 2018
Good to get a good overall grasp of bash.
232 reviews17 followers
February 22, 2017
Some mixed feelings, it's a quite relaxing book to read. First half mainly covers bash, and I was convinced the second half is diving in different topics (sed, awk, perl and python). Needless to say that a mere thirty pages per topic is way too little to cover some ground. However it takes courage to actually devote chapters to some of these languages who are getting more extinct by the day.
Profile Image for Sandeep.
23 reviews
Read
January 2, 2016
Excellent book for shell scripting
This entire review has been hidden because of spoilers.
Displaying 1 - 4 of 4 reviews