Master the complexities of Bash shell scripting and unlock the power of shell for your enterpriseKey FeaturesIdentify high-level steps such as verifying user inputUse the command line and conditional statements for creating and executing simple shell scriptsCreate and edit dynamic shell scripts to manage complex and repetitive tasksBook DescriptionMastering shell scripting is made easy with this book that guides you through everything, right from using the Linux command line through to creating Bash scripts, while also helping you make informed choices about the elements you employ.You can use your favorite editor and start writing Bash scripts in a step-by-step manner. The book will also help you get to grips with the fundamentals of creating and running a script in normal mode, as well as in debug mode. You'll explore code snippets from various conditional statements, and realize the power of repetition and loops in your shell script. You will gradually learn to write complex shell scripts, before delving into file system administration, directories, and system administration such as networking, process management, user authentication, package installation, and regular expressions. Toward the concluding chapters, you will learn how to use Python as an alternative for Bash scripting.By the end of this book, you will be well-versed with shell scripts and have mastered the technique of automating and communicating with your system through keyboard expressions.What you will learnDevelop, execute, and debug your first Bash scriptCreate interactive scripts that prompt for user inputBuild 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 log files and generate reportsDraft effective scripts using functions as building blocks, reducing maintenance and build timeCompare different script languages such as Python with BashUse the command line to bypass the graphical user interface (GUI) and automate common tasksWho This Book Is ForIf you are a Linux administrator or a system administrator and are interested in automating daily tasks to save time and effort, then this book is for you. Basic shell scripting and command-line experience will be required. Familiarity with the tasks you need to automate will also be helpful.Table of ContentsWhat and Why of Scripting with BASHCreating Interactive ScriptsConditions attachedCreating Code SnippetsAlternative syntaxIterating with LoopsCreating Building Blocks with FunctionsIntroducing sedAutomating Apache Virtual HostsAWK FundamentalsRegular expressionsSummarizing Logs with awkA Better lastlog with AwkUsing Python as a BASH Scripting Alternative
✔ Author(s): Mokhtar Ebrahim,Andrew Mallett
✔ Title: Mastering Linux Shell Scripting: A practical guide to Linux command-line, Bash scripting, and Shell programming, 2nd Edition
✔ Rating : 4.4 out of 5 base on (120 reviews)
✔ ISBN-10: 1788990552
✔ Language: English
✔ Format ebook: PDF, EPUB, Kindle, Audio, HTML and MOBI
✔ Device compatibles: Android, iOS, PC and Amazon Kindle
Readers' opinions about Mastering Linux Shell Scripting by Mokhtar Ebrahim
Maddison Pearce
Experience the inspiring journey of an individual overcoming incredible odds in this powerful memoir. The author's candid and heartfelt writing brings their story to life. Each chapter reveals the resilience and strength of the human spirit. The narrative is both informative and deeply moving, offering valuable life lessons. It's a story that motivates and inspires, making it a must-read. Perfect for those seeking inspiration and personal growth.
Byrdie Bartlett
Explore the transformative power of travel and adventure in this inspiring memoir. The author's vivid descriptions and engaging writing make you feel like you're right there with them. Each chapter offers new insights into different cultures and landscapes. The narrative is both informative and deeply personal, sharing the highs and lows of the journey. It's a story that inspires wanderlust and personal growth. Perfect for those who love travel stories.
Sara Price
Discover the inspiring story of a trailblazer who changed the world in this compelling biography. The author's detailed research and engaging writing bring the subject to life. Each chapter reveals new insights into the person's life and achievements. The narrative is both informative and deeply moving, offering valuable life lessons. It's a story that motivates and inspires. Perfect for history buffs and biography enthusiasts.
Microintervention Strategies – What You Can Do toDisarm and Dismantle Individual and SystemicRacism and Bias, THE SHADOW WORK JOURNAL: A Guide for Exploring your Hidden Self. Shadow Work Exercises, Shadow Triggers and Shadow Work prompts Journaling, Fast Like Daniel: 21 Days That Will Change Your Life, Fruitful Discipleship: Living the Mission of Jesus in the Church and the World, Shroud of Night, 101 Hit Songs: for Viola, The Mind of God: Neuroscience, Faith, and a Search for the Soul, Ablaze: 5 Essential Paradigm Shifts for Parish Renewal, Free Agent Lifestyle: Men’s Guide To Peace, Quiet and Freedom, Frankenstein: Annotated for Scientists, Engineers, and Creators of All Kinds (Mit Press),