The Bash Programming Language (original) (raw)
Published on 09 May 2018 (Updated: 06 April 2025)
Welcome to the Bash page! Here, you'll find a description of the language as well as a list of sample programs in that language.
This article was written by:
- Jeremy Grifski
- Ron Zuckerman
Description
Bash is a command language first released back in 1989. Despite its age, Bash is still heavily maintained with changes tracked in git.
In terms of features, Bash supports variables, piping, globbing, control flow, and even iteration. Of those features, perhaps the coolest is globbing, also known as wildcard matching. Globbing can be used to retrieves sets of files that match a wildcard expression.
Beyond that, Bash is ubiquitous in the Linux/Unix/Mac communities. After all, it's the standard shell on most systems. In fact, it even has support on Windows 10. That means shell scripts are fairly portable. However, users will have to pay attention to code that doesn't conform the Bourne shell standards.
You'd be hard pressed to find a popular system that doesn't support Bash today. Even Jenkins, a continuous integration utility, supports Bash scripting during builds.
Articles
There are 15 articles:
- Baklava in Bash
- Base64 Encode Decode in Bash
- Bubble Sort in Bash
- Capitalize in Bash
- Even Odd in Bash
- Factorial in Bash
- Fibonacci in Bash
- File Input Output in Bash
- Fizz Buzz in Bash
- Hello World in Bash
- Prime Number in Bash
- Quick Sort in Bash
- Quine in Bash
- Reverse String in Bash
- Selection Sort in Bash