Performing Math Operations in Bash [12+ Commands Explained]
Mathematical or arithmetical calculations are essential for scheduling cron jobs, calculating the difference between the timestamps, and many other important …
Mathematical or arithmetical calculations are essential for scheduling cron jobs, calculating the difference between the timestamps, and many other important …
To divide two numbers in Bash use the following methods: Divide two integer variables x and y using expr command: …
Adding numbers is one of the basic math operations one needs to perform. In the Bash shell, there are a …
Arithmetic operators are operators that facilitate the evaluation of a desired mathematical expression. Bash shell supports a lot of arithmetic …
Glob expansion is one of the elegant techniques in Bash to find files or match pathnames. There are a few …
Parameter expansion is one of the key concepts in Bash scripting. It is useful to find, replace or modify the …
The history in Bash allows programmers to remember commands from the history list in a quick and efficient way. Moreover, …
Bash shell offers multiple array handling tools and techniques. Among them array expansion is prominent. It takes the array handling …
Have you ever performed any arithmetic calculation in Bash? If you’re new to Bash scripting, you might encounter difficulties when …
Tilde expansion is a feature in Bash that allows users to use the tilde character (~) as equivalent to a …
Brace expansion is a feature in Bash that permits to generate a range of strings of various types. These strings …
Expansion is a useful technique for expanding certain types of characters or symbols in Bash. These characters, symbols or syntax …
Find and replace is a fundamental task that is needed for changing things in files. Fortunately, Bash offers multiple alternative …
The date command in Bash is used to get the current time. The current time may differ depending on which …
The Bash date command is multi-functional, offering various options and formats to display date and time. With this command, you …
Taking a user password in Bash is an important task. One can utilize the read command to read passwords securely. …
UUID or Universal Unique Identifier is used to uniquely identify almost all the entities such as files, digital objects etc. …
Sometimes, it’s important to save a command’s output in a separate file. Moreover, an error may occur while executing a …
Writing to a file is important to store info for further analysis. Using Bash script one can easily write command …
The date command in Bash scripting is widely used to retrieve and manipulate dates and times. It offers various formats …