Tag: bash script

  • How to install Mariadb 10.4 server on CentOS 8 / RHEL 8

    How to install Mariadb 10.4 server on CentOS 8 / RHEL 8

    Do you want to know how to install Mariadb 10.04 server on CentOS 8/RHEL 8 ? This post will help you to install MariaDB server. MariaDB is now defacto RDBMS in RHEL/CentOS after its seperation from the MySQL. We have already written other post on Mariadb Server, hence we will directly go to installation section. […]

  • bash scripting : Prompt user yes / no for confirmation

    bash scripting : Prompt user yes / no for confirmation

    In this tutorial we will learn simple bash script to prompt user yes / no for confirmation. It means when user run the script, it will first ask user to confirm by typing yes or no. Once user confirm it take appropriate action. Whereas in case, the user type apart of yes/no , it will […]

  • Bash : print variable value inside single and double quotes

    Bash : print variable value inside single and double quotes

    In this post we will learn, how to print variable value inside single and double quotes. Today I was working on some bash scripting and got this requirement. The script is working wonderfully and as expecting output was also coming. Today we will share this basic bash scripting. Explaining step by step , which gives […]

  • Replace keyword with its filename without extension : bash script

    Replace keyword with its filename without extension : bash script

    Today in this example we will use bash script. The task is replace keyword with its filename without extension.To accomplish this task we will use bash script.In bash script we will use for loop and sed command .To elaborate this example,lets assume we have 4 files called file1.txt red.txt blue.txt roger.txt The above each file […]

  • send email after mysql backup through bash script in simple way

    send email after mysql backup through bash script in simple way

    send email after mysql backup through bash script in simple way In Facebook group one of the user asked this question “how to send email after mysql backup through bash script”. If you know bash scripting a bit it is just a one liner. It can be write in more advanced form but here I […]

  • How to convert float to integer number

    How to convert float to integer number

    How to convert float to integer number In this tutorial we will learn how to convert float to integer number. This tutorial is helpful in bash or shell scripting. For eg. the float value number is 204.47584 and you would like to show only number in integer form means upto 204. So for this use […]