Oct 26, 2025 · 15 min read · let’s begin Arrays in Shell We initialize an empty array in Shell with (). See the below example where we have created 3 empty arrays. #!/bin/bash # Initialize empty arrays NUMBERS=() STRINGS=() NAMES=() ## See below, += is to append element in the...
Join discussion
Jul 1, 2025 · 4 min read · Bash scripting is a way to automate tasks in Linux using a series of shell commands written in a text file. Think of it as creating a to-do list for your computer to follow — automatically.. 📌 1. Getting Started with Bash Scripts Every Bash script s...
Join discussionMar 7, 2025 · 4 min read · 1. Log Rotation Script Logs can quickly grow large and consume disk space. This script rotates and compresses old log files. #!/bin/bash # Rotate and compress logs LOG_FILE="/var/log/app.log" BACKUP_DIR="/var/log/backup" TIMESTAMP=$(date +"%Y%m%d") m...
Join discussion
Feb 18, 2025 · 9 min read · Before we proceed learning Bash scripting, it’s essential to first grasp the foundational concepts in order to understand why Bash scripting is so powerful. Foundational Concepts 1️⃣ File Permissions & Execution • Why? You need to ensure your scripts...
Join discussion
Feb 3, 2025 · 4 min read · Harnessing the Power of Bash for Workflow Efficiency As a developer, strategist, and systems thinker, I’m always looking for ways to optimize workflows and automate repetitive tasks. While high-level scripting languages like Python and automation too...
Join discussion
Dec 24, 2024 · 3 min read · Introduction In the ever-evolving world of DevOps, automation is a cornerstone for efficiency and scalability. On Day 13 of the 100DaysOfDevOps challenge, we dive into a hands-on project that integrates shell scripting with the GitHub API. This proje...
Join discussion
Dec 18, 2024 · 2 min read · Shell scripting is an indispensable skill for DevOps professionals, streamlining automation and ensuring efficient server management. In Day 9 of our 100 Days of DevOps Challenge, we dive deep into advanced shell scripting concepts that can elevate y...
Join discussion
Dec 17, 2024 · 1 min read · Introduction Shell scripting is a foundational skill for DevOps engineers, enabling task automation and efficient system management. This post outlines key steps to master shell scripting, along with practical use cases in the DevOps ecosystem. Why S...
Join discussion
Nov 3, 2024 · 4 min read · Hey there, fellow learners! Welcome to Day 9 of our 100 Days of DevOps journey. Today, I’m excited to share two beginner-friendly Bash scripting projects that will enhance your command line skills and help you automate some everyday tasks. Let’s dive...
Join discussion