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,…
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…
A shell script is a code (script) written for the shell or command line interpreter of an operating system such as Unix. It allows users to automate tasks which would…
The following code reads files in a directory called SQL. Then if runs an SQL command with the file name as input. Finally, it deletes the file from the directory.
Recently, I found a really elegant solution to display a file tree using the ls command. I like is so much that I feel the need to share it. The…