Up and Running with Bash Scripting
Bash, or the Bourne Again Shell, is a widely popular command-line interpreter for administration and programming tasks. It's also the default option on Mac OS X and Linux. But Bash is different than most scripting languages. That's why Scott Simpson spends some time in this course running you through the syntax—introducing variables, numbers, and control structures—so you can start writing scripts right away. He shows you how to wrap up multiline operations in one file, implement flow control, and interact with users to get input. Plus, he offers challenges along the way that allow you to put what you've learned to the test.
- What is Bash?
- Managing output with grep, awk, and cut
- Understanding Bash script syntax
- Creating a basic Bash script
- Displaying text with "echo"
- Working with numbers, strings, and arrays
- Reading and writing text files
- Working with loops
- Using functions
- Getting user input during execution
- Ensuring a response
(upbeat music) - [Voiceover] Hi there, I'm Scott Simpson and welcome to Up and Running with Bash Scripts. Bash, or the born again shell, is a widely popular command line interpreter. It's the default command line environment option on Mac OS X and Linux. It's very powerful and if you spend much time working at the command line in Mac OS X or Linux, you're already familiar with some of what it can do. The goal of this course is to get you started writing scripts for use within the Bash environment, wrapping up multi line operations in one file, implementing logic or flow control and interacting with a user to get input.
Bash is a little different from many of the programming languages you may be familiar with, however, and in this course I lay out the basic syntax and point out some of those differences. You'll see how to work with variables, numbers and control structures. Then I'll show you how to interact with a user and do a little bit of basic automation. Because your time is valuable and an in depth treatment of Bash could go on for many hours, I'll also point out some great resources that you'll be able to use once you have a solid understanding of the basics. So let's get up and running with Bash Scripts.
AWK Essential Training128,275 Views
Up and Running with vi82,983 Views
Perl 5 Essential Training (2010)720,471 Views
Using Regular Expressions529,595 Views
Code Clinic: Python131,744 Views
Unix for Mac OS X Users1,582,099 Views
Git Essential Training2,843,596 Views
PHP with MySQL Essential Training4,259,922 Views
Python 3 Essential Training2,293,993 Views