Join Scott Simpson for an in-depth discussion in this video Understanding Bash script syntax, part of Learning Bash Scripting.
…While Bash refers to the whole interactive shell, most of the time…we just issue single commands: ls, cd, rm, grab and things like that.…A Bash script can contain many of these commands and…often makes use of variables, arguments and procedural flow-control logic.…Of course, you can enter these things line by line at the command prompt,…but the whole point of having scripts is that you don't have to do that.…Your script will start with an interpreter…directive that's sometimes called a hashbang or shebang.…That nickname comes from the first two characters of the line - a number…or pound sign or hash sign, and…an exclamation mark which is sometimes called bang.…
That's followed by the path to the Bash executable.…And this can vary on different systems, but usually it'll be at bin Bash.…The hash, or number sign, is the common signifier in Bash.…If you put it at the beginning of a…line, the interpreter ignores the text on that line.…Together with the exclamation mark and a path to the Bash binary, the whole line…
- 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
Skill Level Beginner
1. Working with the Command Line
2. Building Bash Scripts
3. Control Structures
4. Interacting with the User
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.