If you’re working with strings in a Bash shell script, you may find yourself needing to split them on a delimiter. This can be a common requirement for parsing data, especially when working with text
Category: Linux
How to prompt for Yes/No/Cancel input in a Linux shell script
As a Linux user or administrator, there may come a time when you need to prompt a user for a simple yes, no, or cancel input in a shell script. This can be useful for
Read More How to prompt for Yes/No/Cancel input in a Linux shell script
How to Make Directory Only if it Doesn’t Exist in Linux
As a Linux user, you might find yourself needing to create a directory frequently. While it may be a simple task, there may be occasions where you want to create a directory only if it
Read More How to Make Directory Only if it Doesn’t Exist in Linux
How To Check If a Directory Exists In Bash Shell Script
When writing shell scripts, it is often necessary to check if a directory exists before performing certain actions. Checking if a directory exists in a shell script can be done in a few different ways,
Read More How To Check If a Directory Exists In Bash Shell Script
How to Get Directory Where Bash Script is Located From Within the Script
When writing Bash scripts, it’s often necessary to access the directory where the script is located from within the script itself. This is particularly useful when working with relative paths or when executing other scripts
Read More How to Get Directory Where Bash Script is Located From Within the Script
How to Pretty Print JSON file in Linux Shell Script
JSON (JavaScript Object Notation) is a lightweight data-interchange format that has become increasingly popular in recent years due to its simplicity, readability, and flexibility. It is commonly used in web applications, APIs, and data storage.
Read More How to Pretty Print JSON file in Linux Shell Script
Check if a directory exists in Linux or Unix shell
As a Linux or Unix user, you may often need to check if a directory exists or not. This is a crucial step in managing your files and directories. In this tutorial, you will explore
Read More Check if a directory exists in Linux or Unix shell
Linux Delete All Directory Using Command Line
In this tutorial guide, you will learn how to remove empty directories and nonempty directories linux using the command line. And as well as how to remove/file files linux using the command line. How to
How to Download a File from Server using SSH on Linux
When it comes to managing a Linux server, downloading files from it is a common task that you may need to perform. Fortunately, using Secure Shell (SSH) to download files from a remote Linux server
Read More How to Download a File from Server using SSH on Linux
How to Download Files from Linux Server to Local Machine
If you’re using a Linux server, there may be times when you need to download a file from it to your local computer machine. Whether it’s a database dump or an important configuration file, downloading
Read More How to Download Files from Linux Server to Local Machine