- Devops Diaries
- Posts
- 2 Weeks - Shell Scripting learning plan
2 Weeks - Shell Scripting learning plan

π-π°πππ€ πΊππππ πΊππππππππ π₯πππ«π§π’π§π π©π₯ππ§
Here is, π-π°πππ€ Shell Scripting π₯πππ«π§π’π§π π©π₯ππ§, and I'm excited to share ππ«ππ’ππ₯ππ¬ on my Medium website!
While running through this program, each day I will cover essential concepts, practical commands, and troubleshooting tips to help you become proficient in it.
Whether you're a beginner or looking to refine your skills, this series will boost your Shell Scripting expertise in no time!
β¦
π Week 1: Fundamentals of Shell Scripting
1οΈβ£ Introduction to Shell Scripting
What is Shell Scripting?
Different types of Shells (Bash, Zsh, Sh, etc.)
- File and directory management (ls, cd, mkdir, rm, etc.)
- Viewing and manipulating files (cat, head, tail, cut, grep)
- Process management (ps, kill, top)
Setting up a shell scripting environment
Creating and running a script (.sh file)
Understanding shebang (#!/bin/bash)
Making scripts executable (chmod +x)
3οΈβ£Variables and Data Types
Defining variables
Environment vs. local variables
Using read to take user input
Arithmetic operators
Comparison operators
Logical operators
4οΈβ£ Conditional Statements and loops
if, elif, else
case statement
for loop
while loop
until loop
5οΈβ£ Functions in Shell Scripts
Creating and calling functions
Using parameters in functions
$1, $2, $@, $#
getopts for option parsing
Understanding exit codes
Using set -e, trap
π Week 2: File Handling & Advanced Scripting
File test operators (-f, -d, -e, etc.)
Reading from and writing to files
Redirection & Piping
> and >> operators
Using | (pipe) to combine commands
Using echo and logger
Debugging with set -x
Running scripts in the background
nohup and jobs
Scheduling Scripts (Cron Jobs & At Command)
Creating cron jobs
Scheduling one-time jobs with at
1οΈβ£1οΈβ£ Working with Arrays and Strings
Declaring and using arrays
String manipulation (sed, awk, cut)
1οΈβ£2οΈβ£ Networking in Shell Scripting
Using curl and wget
Checking internet connectivity in scripts
1οΈβ£3οΈβ£ Automating Tasks with Shell Scripts
Creating backup scripts
Automating log cleanup
1οΈβ£4οΈβ£ Integrating Shell Scripts with Other Tools
Calling Python scripts from Shell
Using Shell scripts in DevOps (AWS CLI, Docker, Kubernetes)
Follow me on Github: https://github.com/AvinashTietler/Shell-Scripting
Reply