Converting Space-Separated Strings to Arrays in Bash Scripts

Introduction: In bash scripting, there are times when you need to process a string of space-separated values. A common scenario is when a script receives a string as an argument and needs to handle each word separately. Let’s explore how to convert a space-separated string into an array. The Solution: Here’s a simple bash script … Continue reading Converting Space-Separated Strings to Arrays in Bash Scripts

How to use the nice command to change process priority in Linux

Introduction In the world of Linux, managing process priorities is crucial for optimal system performance. The ‘nice’ command is a built-in utility in Linux that allows you to execute commands with altered priorities. Understanding how to use this tool effectively can significantly enhance your system management skills. Understanding the ‘nice’ Command The ‘nice’ command in … Continue reading How to use the nice command to change process priority in Linux

How to Extract MP3 Audio from AVI or WebM Videos Using FFmpeg

Introduction: What You Will Need: a computer with FFmpeg installed. I’m providing you with a link with instructions on how to install FFmpeg on Linux, Windows or MacOS just in case if it’s not already installed. Step-by-Step Guide: Open the Terminal or Command Prompt: – I think there is no need to explain you on … Continue reading How to Extract MP3 Audio from AVI or WebM Videos Using FFmpeg

What string set -Eeuo pipefail in shell script does mean?

The string `set -Eeuo pipefail` is a command used in shell scripts, particularly in Bash, to modify the behavior of the script for better error handling and debugging. Here’s what each component means: `set`: This is a shell builtin command that sets or unsets shell options and positional parameters. `-E`: This option ensures that the … Continue reading What string set -Eeuo pipefail in shell script does mean?

Converting Adobe Photoshop PSD Files with CMYK color scheme to RGB for best compatibility for GIMP in Linux

Recently, I encountered a challenging issue while working with graphic files: I was unable to open files created in Adobe Photoshop (with a CMYK color scheme) using the GIMP editor on Linux. This compatibility problem is not uncommon for graphic designers and developers who work across different operating systems and software. To overcome this hurdle, … Continue reading Converting Adobe Photoshop PSD Files with CMYK color scheme to RGB for best compatibility for GIMP in Linux

How to Exclude Files from Git Tracking Without Using .gitignore

Git

How to Exclude Files from Git Tracking Without Using .gitignore Introduction: In certain scenarios, you might find yourself needing to stop Git from tracking changes in specific files without adding them to `.gitignore`. This situation often arises with local configuration files, which you do not wish to share with others but still need to keep … Continue reading How to Exclude Files from Git Tracking Without Using .gitignore

Merging MP3 Files Seamlessly with FFmpeg

It could be useful to merge a number of mp3 files into one using the following command: The command above will combine mp3 files listed in -i option into one large audio file called _all_files_combined.mp3. Check out video tutorial version located on my Youtube channel Linux Tutorials at: https://youtu.be/1YM_G7nPQo4