
Bash Cookbook
Leverage Bash scripting to automate daily tasks and improve productivity
Packt Publishing
Published on 30. July 2018
Book
Paperback/Softback
264 pages
978-1-78862-936-2 (ISBN)
Description
Create simple to advanced shell scripts and enhance your system functionality with effective recipes
Key Features
Automate tedious and repetitive tasks
Create several novel applications ranging from a simple IRC logger to a Web Scraper
Manage your system efficiently by becoming a seasoned Bash user
Book DescriptionIn Linux, one of the most commonly used and most powerful tools is the Bash shell. With its collection of engaging recipes, Bash Cookbook takes you through a series of exercises designed to teach you how to effectively use the Bash shell in order to create and execute your own scripts.
The book starts by introducing you to the basics of using the Bash shell, also teaching you the fundamentals of generating any input from a command. With the help of a number of exercises, you will get to grips with the automation of daily tasks for sysadmins and power users. Once you have a hands-on understanding of the subject, you will move on to exploring more advanced projects that can solve real-world problems comprehensively on a Linux system. In addition to this, you will discover projects such as creating an application with a menu, beginning scripts on startup, parsing and displaying human-readable information, and executing remote commands with authentication using self-generated Secure Shell (SSH) keys.
By the end of this book, you will have gained significant experience of solving real-world problems, from automating routine tasks to managing your systems and creating your own scripts.What you will learn
Understand the basics of Bash shell scripting on a Linux system
Gain working knowledge of how redirections and pipes interact
Retrieve and parse input or output of any command
Automate tasks such as data collection and creating and applying a patch
Create a script that acts like a program with different features
Customize your Bash shell and discover neat tricks to extend your programs
Compile and install shell and log commands on your system s console using Syslog
Who this book is forThe Bash Cookbook is for you if you are a power user or system administrator involved in writing Bash scripts in order to automate tasks. This book is also ideal if you are interested in learning how to automate complex daily tasks.
Key Features
Automate tedious and repetitive tasks
Create several novel applications ranging from a simple IRC logger to a Web Scraper
Manage your system efficiently by becoming a seasoned Bash user
Book DescriptionIn Linux, one of the most commonly used and most powerful tools is the Bash shell. With its collection of engaging recipes, Bash Cookbook takes you through a series of exercises designed to teach you how to effectively use the Bash shell in order to create and execute your own scripts.
The book starts by introducing you to the basics of using the Bash shell, also teaching you the fundamentals of generating any input from a command. With the help of a number of exercises, you will get to grips with the automation of daily tasks for sysadmins and power users. Once you have a hands-on understanding of the subject, you will move on to exploring more advanced projects that can solve real-world problems comprehensively on a Linux system. In addition to this, you will discover projects such as creating an application with a menu, beginning scripts on startup, parsing and displaying human-readable information, and executing remote commands with authentication using self-generated Secure Shell (SSH) keys.
By the end of this book, you will have gained significant experience of solving real-world problems, from automating routine tasks to managing your systems and creating your own scripts.What you will learn
Understand the basics of Bash shell scripting on a Linux system
Gain working knowledge of how redirections and pipes interact
Retrieve and parse input or output of any command
Automate tasks such as data collection and creating and applying a patch
Create a script that acts like a program with different features
Customize your Bash shell and discover neat tricks to extend your programs
Compile and install shell and log commands on your system s console using Syslog
Who this book is forThe Bash Cookbook is for you if you are a power user or system administrator involved in writing Bash scripts in order to automate tasks. This book is also ideal if you are interested in learning how to automate complex daily tasks.
More details
Language
English
Place of publication
Birmingham
United Kingdom
Target group
Professional and scholarly
US School Grade: College Graduate Student
Dimensions
Height: 235 mm
Width: 191 mm
Thickness: 15 mm
Weight
500 gr
ISBN-13
978-1-78862-936-2 (9781788629362)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Other editions
Additional editions

Ron Brash | Ganesh Sanjiv Naik
Bash Cookbook
Leverage Bash scripting to automate daily tasks and improve productivity
E-Book
09/2024
Packt Publishing
€31.49
Available for download
Persons
Ron Brash is the CTO and co-founder of a successful technology consultancy company that provides services in a multitude of domains, but primarily in FOSS and Linux. For over 7 years, he has worked on embedded systems, which provide security and network connectivity in industrial control systems and SCADA networks, all running an optimized embedded Linux. He participates regularly at FOSS and community events, providing feedback and mini-seminars where appropriate. He loves to share his knowledge. Ganesh Sanjiv Naik is an author, consultant, and corporate trainer for embedded
Android, embedded Linux, and Internet of Things related product development.
He completed his computer engineering in 1988. Since then, he has worked in this
industry. He has worked on projects including micro-controller based projects to
advanced Embedded Android projects. He has more than 20 years of professional
experience and project accomplishment in information technology.
Ganesh has a passion and deep desire for teaching. He has trained 1,000 engineers
in Linux and Android product development. He has developed a lot of training
material as well as curriculum for various universities and training institutes.
He has an interest in spiritual study and practices such as meditation. He is a certified
yoga teacher. His hobbies include yoga and martial arts.
He has worked as a corporate trainer for Indian Space Research Organization,
Intel, GE, Samsung, Motorola, Penang Skill Development Center (Malaysia),
various companies in Singapore as well as various other corporates in India and
other countries. He has started a company called Levana Technologies, which
works with the Penang Skill Development Center (Malaysia) for consulting and
training activities. If you would like to send feedback, suggestions, or corrections
in the book, he can be contacted at https://in.linkedin.com/in/naikganesh.
This book is his real-life experience....
He has worked as a consultant and corporate trainer in the following skills:
* Internet of Things
* Embedded Android, Android internals, and device driver development
* USB and PCI device driver development in Linux
* Embedded Linux and device driver development
* Unix Shell scripting with sed and awk
* Embedded C++ and C programming
* Operating systems, software engineering, and networking
* Problem solving-analysis, reasoning, and solution techniques for
software engineers
Android, embedded Linux, and Internet of Things related product development.
He completed his computer engineering in 1988. Since then, he has worked in this
industry. He has worked on projects including micro-controller based projects to
advanced Embedded Android projects. He has more than 20 years of professional
experience and project accomplishment in information technology.
Ganesh has a passion and deep desire for teaching. He has trained 1,000 engineers
in Linux and Android product development. He has developed a lot of training
material as well as curriculum for various universities and training institutes.
He has an interest in spiritual study and practices such as meditation. He is a certified
yoga teacher. His hobbies include yoga and martial arts.
He has worked as a corporate trainer for Indian Space Research Organization,
Intel, GE, Samsung, Motorola, Penang Skill Development Center (Malaysia),
various companies in Singapore as well as various other corporates in India and
other countries. He has started a company called Levana Technologies, which
works with the Penang Skill Development Center (Malaysia) for consulting and
training activities. If you would like to send feedback, suggestions, or corrections
in the book, he can be contacted at https://in.linkedin.com/in/naikganesh.
This book is his real-life experience....
He has worked as a consultant and corporate trainer in the following skills:
* Internet of Things
* Embedded Android, Android internals, and device driver development
* USB and PCI device driver development in Linux
* Embedded Linux and device driver development
* Unix Shell scripting with sed and awk
* Embedded C++ and C programming
* Operating systems, software engineering, and networking
* Problem solving-analysis, reasoning, and solution techniques for
software engineers
Content
Table of Contents
Crash Course in Bash
Acting Like a Typewriter and File Explorer
Understanding and Gaining File System Mastery
Making a Script Behave Like a Daemon
Scripts for System Administration Tasks
Scripts for Power Users
Writing Bash to Win and Profit
Advanced Scripting Techniques
Crash Course in Bash
Acting Like a Typewriter and File Explorer
Understanding and Gaining File System Mastery
Making a Script Behave Like a Daemon
Scripts for System Administration Tasks
Scripts for Power Users
Writing Bash to Win and Profit
Advanced Scripting Techniques