bash: How to Concatenate Strings
String manipulation is a fundamental aspect of Bash scripting, and understanding how to concatenate strings is a key skill for any script developer. In this post, we will explore various…
Simply Explaining Technology
String manipulation is a fundamental aspect of Bash scripting, and understanding how to concatenate strings is a key skill for any script developer. In this post, we will explore various…
Base64 encoding is a widely used technique for transforming binary data into a text-based format, and decoding Base64 strings is a common task in scripting and programming. In this guide,…
In Bash, variable incrementation refers to the process of increasing the value of a variable by a certain amount. This operation is crucial for tasks like counting iterations in loops,…
The “shebang” is a special line in a script that specifies the interpreter for running the script. It is also known as a hashbang or a pound-bang. In Bash scripts,…
This post shows how to generate public / private key pair. To generate public/private key pair, simply run the following command:$ ssh-keygen -t rsa Following are step-by-step instructions: 1. Open…
The rm command deletes files. To delete a directory that is not empty and its subdirectories, use$ rm -rf directory However, sometimes you need to remove a specific subdirectory rather…
There are many ways to create an empty text file from command line. This post shows 3 ways. To create empty file from Linux command line, you can use one…
To rename multiple files using the command line, you can use the rename command or a shell script. Its syntax is as follows. As you can see, the catch is…
This post shows how to change file extensions using bash. To change file extensions, we simple need to loop through file in a directory and use the “mv” command to…
Suppose you have 2000 photos in a directory and you need to rename them. The files are named as: We need to rename them as follows: Here is how: j…