💻 Shell Scripting

Learn the basics of writing and running shell scripts in Linux.

📌 Basics

📦 Variables

⚖️ Conditions

🔁 Loops

🧩 Functions

📚 Arrays

⚡ String Operations

🚨 Error Handling

📝 Input/Output & Redirection

⏳ Date and Time

📌 Best Practices

💡 Example Script


          #!/bin/bash
          read -p "Enter filename: " file
          if [ -f "$file" ]; then
          echo "Content of $file:"
          cat "$file"
          else
          echo "File not found"
          fi