Shell Programming Basics With Examples
16 Aug 2024
11 min read
On this page
- 1. **Declaring Variables**
- 2. **Accessing Variables**
- 3. **String Operations**
- 4. **Numbers and Arithmetic Operations**
- 5. **Conditional Statements**
- 6. **Loops**
- 7. **Functions**
- 8. **Case Statements**
- 9. **Arrays**
- 10. **Reading User Input**
- 11. **Command Substitution**
- 12. **File Operations**
- 13. **Functions with Return Values**
- 14. **Using Exit Status**
- 15. **Here Documents**
- 16. **Pipes and Redirection**
- 17. **Background Jobs**
- 18. **Environment Variables**
- 19. **Traps and Signal Handling**
- 20. **Case Conversion**
- 21. **Arrays with Indexes**
- 22. **Associative Arrays (Bash 4+)**
- 23. **Date and Time**
- 24. **String Manipulation with `sed`**
- 25. **Working with JSON (jq)**
Tags:
More Articles
Easiest way to render MDX files in Next.js
Rendering MDX Files in Next.js App Directory from mdx file text
Read article
Integrating Custom Fonts in Next.js with Tailwind CSS
Guide to successfully adding custom fonts in Next.js using Tailwind CSS.
Read article
How to Add Sitemap to Next.js 14
Guide on adding a sitemap to a Next.js 14 application, including setup and automation.
Read article
Overview of HTTP/1.1 Waterfall and HTTP/2 multiplexing
Why HTTP/1.1 leads to waterfall and how HTTP/2 solves it
Read article