Shell Programming Basics With Examples
16 Aug 2024
11 min read
On this page
Overview
- 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)**
Page Views: -