Category: batch script
The MOV video files are generally huge compare to MP4/MPEG. When taking a video using smart phones such as iphone 12 Pro Max, you get the MOV videos. Then …
We can compute the Greatest Common Divisor (GCD) using Iterative Divide/Remainder Method. The following is the GCD implementation in BASH Programming: #!/bin/bash function gcd() { local x=$1 local y=$2 …
The str_repeat function is a commonly used function that allows you to print/generate a string that is filled with a number of common patterns. For example: str_repeat(3, “Hello “) …
In Linux, we have service process controller which can be used to start, stop and restart a particular registered service. For example: $ sudo service mysql stop $ sudo …
Disk high usage are one of the common cause of server down. Some administrators would create a 8GB empty file, and once the disk usage is exceeding a threshold, …