Skip to content

Shell scripting examples and tutorials from the "ABC of Shell Scripting" article series. Covers fundamentals including variables, operators, conditionals, loops, functions, and more. Perfect for beginners learning Bash scripting.

License

Notifications You must be signed in to change notification settings

LakeeshaRCL/shell-scripting-basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ABC of Shell Scripting

Comprehensive shell scripting examples and tutorials for beginners learning Bash scripting.

📖 About

This repository contains all the example scripts from the "ABC of Shell Scripting" article series. Each script demonstrates fundamental shell scripting concepts with clear, practical examples that you can type, run, and modify.

📚 Topics Covered

  • Introduction to Shell Scripting
  • Linux Shell Types (Bourne, Bash, C Shell, Korn Shell)
  • Shebang Construct and Comments
  • Variables (Environment, User-defined, Arrays)
  • Operators (Arithmetic, Assignment, Bitwise)
  • Comparison Operators (Numeric, String, Logical, File Test)
  • Conditionals (if-else, if-elif-else, case statements)
  • Loops (for, while, until, loop control)
  • Command-Line Arguments
  • User Inputs (interactive scripts)
  • Functions (parameters, return values, local/global scope)

🚀 Getting Started

Prerequisites

  • Linux/Unix-based operating system
  • Bash shell (usually pre-installed)
  • Basic understanding of command-line interface

Running the Scripts

  1. Clone the repository:
git clone [your-repo-url]
cd abc-of-shell-scripting
  1. Make scripts executable:
chmod +x script-name.sh
  1. Run a script:
./script-name.sh

💡 How to Use This Repository

  1. Follow Along: Use these scripts while reading the article
  2. Type, Don't Copy: Typing scripts helps reinforce learning
  3. Experiment: Modify the scripts to see what happens
  4. Practice: Create your own variations of the examples

📖 Related Articles

🤝 Contributing

Suggestions and improvements are welcome! Feel free to:

  • Report issues
  • Suggest new examples

📝 License

GPL

✍️ Author

Lakeesha Ramanayake

⭐ Support

If you found this helpful, please star the repository!


Happy Scripting! 🚀

About

Shell scripting examples and tutorials from the "ABC of Shell Scripting" article series. Covers fundamentals including variables, operators, conditionals, loops, functions, and more. Perfect for beginners learning Bash scripting.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages