Skip to content

Praban25/Shell-Scripting-For-DevOps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell Scripting for DevOps

Zero to hero. Bash basics → real DevOps automation.

Udaan Batch 11 · TrainWithShubham


Start here

git clone <this-repo>
cd Shell-Scripting-For-DevOps/practice-scripts
bash 01_hello.sh

Then keep going — 02, 03, 04 … all the way to 19.

Full guide: practice-scripts/README.md


The path

Folder What's inside
practice-scripts/ 19 numbered scripts. Your zero-to-hero journey. Start here.
day01/day03/ Live class scripts, day-by-day. Reference + history.
log-files/ Sample logs for grep / awk / tail practice.

How to practice

  1. Read the script (5 mins).
  2. Run it. See output.
  3. Break it on purpose — change a variable, remove a quote, swap -eq for -ne.
  4. Rewrite it from scratch without looking. This is where learning sticks.
  5. Move to the next number.

Stuck? bash -x script.sh shows every line as it runs.


The 6 things you'll actually learn

  • Variables & inputread, $1, $(date)
  • Conditionalsif, [[ ]], file tests -f
  • Loopsfor, while, C-style counters
  • Functions — reuse code, pass args
  • Error handlingset -e, exit codes, && / ||
  • Real stuff — user creation, system info, backups + cron, AWS EC2, Docker deploys

Mini-projects in this repo


Need help?

  • man bash — the source of truth
  • tldr <command> — examples that actually make sense
  • crontab.guru — cron expressions
  • shellcheck.net — paste your script, find bugs

Likhna shuru karo. Galtiyaan karo. Phir se likho. Bas yahi tarika hai.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%