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
An Introduction to StackBlitz’s WebContainers
Discover how StackBlitz’s WebContainers are transforming web development by enabling full-stack environments to run entirely in the browser.
Read article
Building A Reusable Generic Http Client In Nextjs 14
Learn how to build a reusable, type-safe HTTP client for making API requests with GET, POST, PUT, and DELETE methods.
Read article
Syntax Highlighting With Highlight Js In Next Js Mdx
Syntax highlighting with Highlight.js in Next.js MDX
Read article
How to Use CASL in Next.js for Role Based Access Control
How to use CASL in Next.js for role based access control
Read article