Author Archives: Roopendra - Page 5
Get the last ten business days in a Unix shell script
Shell script to get the last 10 weekdays and run some task for each date over an element array. #!/usr/bin/bash n=10 today=$(date +'%Y-%m-%d') for ((d=1; n>0; d++)) do # Adjust…
What is Site Reliability Engineer (SRE) Role?
What is Site Reliability Engineer (SRE) Role? Site Reliability Engineering (SRE) is a discipline that incorporates aspects of software engineering and applies them to infrastructure and operations problems. The main…
Regular Expression Reference
Regular Expression Reference 1) Write a regular expression to match pattern in email. match -eu before @ in email. Regex : 2)…
Shell script to pass multiple arguments with options
Shell script to pass multiple arguments with options This tutorial will help you to pass multiple arguments in a more organized manner. I have used two arguments "t" and "d"…
How to install Maven on Windows 10
How to install Maven on Windows 10 In order to install maven on a Windows machine you will need to install JDK first as Maven is a Java based tool.…
How to Run a Shell Script in Infinite Loop
You can run a shell script in infinite loop by using while loop. #!/bin/bash while true do echo "Press CTRL+C to stop the script execution" # Enter your desired command in…
Cut and paste in Vim editor
Here is the simple step by step guideline to cut and paste in Vim editor. Press esc if vim editor in insert mode Position the cursor where you want to…
How to Run a Linux Script During Reboot or Startup
How to Run a Linux Script During Reboot or Startup I come across one use case where I need to run a Linux script during reboot or startup of the…
Shell Scripting Tutorial for Beginners
Shell Scripting Tutorial for Beginners I am sharing few beginner shell scripting reference that we need in day-to-day tasks. Local Variable in Shell Script We can create local variables in…
How to install Curl on Windows 10
Here is the step by step guideline to install curl on windows 10 machine. Step 1. Download curl from the official website ;download page. Choose your operating system version. Step 2:…