Regular Expression Reference
Regular Expression Reference 1) Write a regular expression to match pattern in email. e.g match -eu before @ in email. Regex : /.*-eu@gmail.com/g 2) Meta Character Reference
Regular Expression Reference 1) Write a regular expression to match pattern in email. e.g match -eu before @ in email. Regex : /.*-eu@gmail.com/g 2) Meta Character Reference
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” here. The first argument “t” will accept task value and based on the task value you can perform the respective action for a particular date(“d”)….
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. If you are installing Maven 3.3 then you required JDK version 1.7 or above. If JDK is already installed on your Windows machine then you…
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 this block. done You can also do this using below inline command while true; do echo ‘Press CTRL+C to stop the script execution’; done You…
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 start cutting. Press v to select the characters and move the cursor at end of character you want to cut. …
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 system. To handle this use-case I have created new script in /etc/init.d/myscript. Lets consider the below example script. /etc/init.d/myscript #! /bin/sh ### BEGIN INIT INFO #…
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 shell script by using the keyword local. #!/bin/bash HELLO=Hello function helloWorld { local HELLO=World echo $HELLO } echo $HELLO helloWorld echo $HELLO Conditional Statement 1)…
Here is the step by step guideline to install curl on windows 10 machine. Step 1. Download curl from the official website https://curl.haxx.se/download.html download page. Choose your operating system version. Step 2: After download, extract the zip file and copy curl.exe from src/ folder to your desired directory. In my case I have copied it in C:\curl Step…
This article will help you to install Maven on Linux Operating System. What is Apache Maven? Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information. Prerequisites: Maven 3.3 requires…
As we know DevOPS is a newly emerging term in IT field, which is nothing but a software development practice that emphasizes the collaboration and communication of both software developers and information-technology (IT) operation professionals. It helps us to delivering software product faster and lowering the failure rate of releases. There are lots of tools…