Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Bash Quick Start Guide

You're reading from   Bash Quick Start Guide Get up and running with shell scripting with Bash

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher Packt
ISBN-13 9781789538830
Length 186 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Tom Ryder Tom Ryder
Author Profile Icon Tom Ryder
Tom Ryder
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. What is Bash? FREE CHAPTER 2. Bash Command Structure 3. Essential Commands 4. Input, Output, and Redirection 5. Variables and Patterns 6. Loops and Conditionals 7. Scripts, Functions, and Aliases 8. Best Practices 9. Other Books You May Enjoy

What this book covers

Chapter 1, What is Bash?, opens the book by giving a clear definition of what the Bash shell actually is, where it fits in with other programs on a Unix system, and how to find and (if necessary) install it on your system.

Chapter 2, Bash Command Structure, looks at the anatomy of Bash command lines, starting with simple single commands and arguments, and moves on through running multiple commands, and good quoting practices for data.

Chapter 3, Essential Commands, examines a list of common commands useful in Bash command lines and scripts, explaining the situations in which each is useful and how to use them; listing, searching, sorting, and slicing data are all discussed.

Chapter 4, Input, Output, and Redirection, extends our new basic command structure knowledge to show how to specify where data for commands to read comes from, and where it goes toincluding "piping" one command's output into another command, and filtering it in between.

Chapter 5, Variables and Patterns, explains and demonstrates how Bash's variable assignment and expansion works for both simple variables and arrays, how to transform strings conveniently with parameter expansion, and how to use patterns to match and specify lists of files.

Chapter 6, Loops and Conditionals, shows how to run the same set of commands on every item of a list of shell words or lines, and how to run commands only if a certain expression is true or false.

Chapter 7, Scripts, Functions, and Aliases, builds on our new knowledge of shell grammar and common commands to start writing your own commands, implemented in the Bash programming language and executable from anywhere on your computer.

Chapter 8, Best Practices, ends the book with some important hints, tips, and techniques for writing robust and readable shell script that will set you on the path to becoming a true shell scripting expert.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime