shell

Linux Shell Scripting Cookbook - Third Edition

This is the code repository for Linux Shell Scripting Cookbook - Third Edition, published by Packt.

Over 110 practical recipes to solve real-world shell problems, guaranteed to make you wonder how you ever lived without them

What is this book about?

The shell remains one of the most powerful tools on a computer system — yet a large number of users are unaware of how much one can accomplish with it. Using a combination of simple commands, we will see how to solve complex problems in day-to-day computer usage.

This book covers the following exciting features:

If you feel this book is for you, get your copy today!

Instructions and Navigations

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

The code will look like the following:

#!/bin/bash
echo "Hello, World!"

Following is what you need for this book:

If you are a beginner who wants to learn how to automate simple to complex tasks using the shell, this book is for you. You can start writing scripts and one-liners by simply looking at the similar recipe and its descriptions without any working knowledge of shell scripting or Linux. Intermediate users can use this book to tackle more advanced tasks in shell scripting, and to become experts in shell scripting.

With the following software and hardware list you can run all code files present in the book (Chapter 1-12).

Software and Hardware List

Chapter Software required OS required
1-12 Bash Linux (Any)
1-12 ShellCheck Linux (Any)
1-12 Vim Linux (Any)
1-12 Git Linux (Any)
1-12 Docker Linux (Any)
1-12 jq Linux (Any)
1-12 curl Linux (Any)
1-12 wget Linux (Any)
1-12 sed Linux (Any)
1-12 awk Linux (Any)
1-12 grep Linux (Any)
1-12 find Linux (Any)
1-12 xargs Linux (Any)
1-12 sort Linux (Any)
1-12 uniq Linux (Any)

Get to Know the Author

Clif Flynt is a professional software developer with more than 30 years of experience. He has written several books on Tcl/Tk and regularly gives talks at conferences. He has been a Linux user for more than 20 years and has written several books on shell scripting. He has also written a book on the Vim editor. He has been a contributor to Linux Journal and SysAdmin magazine. He has also written several articles for IBM DeveloperWorks.

JP Vossen is a Linux Engineer and has been working with Unix and Linux for over 20 years. He has been a Linux user and a fan of open source software since the mid-1990s. He has been a contributor to SysAdmin magazine and has written several articles for IBM DeveloperWorks. He has also written a book on Linux system administration. He has been a speaker at several conferences, including LISA and the Southern California Linux Expo (SCALE).

David Johnson is a professional software developer with more than 20 years of experience. He has been a Linux user for more than 20 years and has written several books on shell scripting. He has also written a book on the Vim editor. He has been a contributor to Linux Journal and SysAdmin magazine. He has also written several articles for IBM DeveloperWorks.

Shantanu Tushar

Shantanu Tushar is a software developer, author, and tech blogger. He has been developing software for well over a decade. He has worked with a number of technologies and programming languages, including but not limited to Python, Java, JavaScript, and C. He has also worked with a number of web frameworks, such as Django, Flask, and AngularJS. He has authored a number of books on Python, Django, and JavaScript. He has also written a number of articles on software development and software-related technologies. He has also been a technical reviewer for a number of books on Python, Django, and JavaScript.

Other books by the authors