Bash ShellUsing Colors in Shell ScriptsBy RahulSeptember 6, 2024Shell scripts are great tools that help you automate tasks on Unix-like operating systems. You can even make them look…
Bash ShellCalculate difference between two dates in BashBy RahulFebruary 28, 2023In Bash, you can easily calculate the difference between two dates. This can be useful in various scenarios, such as…
Bash ShellChecking If a Command Succeeded in Bash Using the `$?` Special VariableBy RahulDecember 27, 2022In Bash, it is often necessary to check if a command succeeded or failed. For example, you may want to…
Bash ShellHow to Generate Random String in BashBy RahulDecember 19, 2022A random string is a sequence of characters that is generated randomly, rather than being determined by a set pattern…
Bash ShellEfficiently Reading a File Line by Line in a Shell ScriptBy RahulDecember 16, 2022Reading a file line by line is a common task in many shell scripts, as it allows you to process…
Bash ShellCheck if a Variable Contains a Number in BashBy RahulOctober 21, 2022A number is a combination of 0-9 digits—the Bash variables stores all value in the form of strings. Even if…
Bash ShellHow to run a command on bash script exitsBy RahulAugust 2, 2022Shell scripts are handy for automating tasks like backup databases, clearing log files, etc. You need to perform some tasks…
Bash ShellHow to Detect and Handle Errors in Your Bash ScriptsBy RahulJuly 30, 2022We can use the trap command to catch the error signal system by the system during script execution. Then you…
Bash ShellShell Script to Backup Website to Amazon S3By RahulMarch 23, 2022Amazon Web Services’ Simple Storage Service (Amazon S3) is a highly reliable and scalable cloud storage solution. It offers cost-effective…
Bash ShellCreating Menu in Shell Script (Linux Select Command)By RahulDecember 10, 2021Bash Select construct is used to create a numbered menu from the list of items. That is helpful for shell…