
Bash: Generating configs with envsubst, here document, and here string
In this note, we will briefly look at a few simple ways to build a config from a Bash script using here document, here string, and envsubst.
All posts under tag "Scripting"

In this note, we will briefly look at a few simple ways to build a config from a Bash script using here document, here string, and envsubst.

A regularly updated collection of useful shell snippets 💻.

In this short note, we will write a Bash script that moves the mouse pointer one pixel and back at a specified interval. This is useful if your desktop is regularly locked because there is no user activity😉.

In this note, I have put together a small roadmap for those who want to learn programming in the Bash shell language.

I will tell you about a task I solved the other day🧑💻 I slightly changed the input data, but the essence remains the same. There are two CSV files: 📄ping_status.csv contains diagnostic information about host availability by ping.

When testing the host availability check script I mentioned last time, I encountered an interesting Bash feature when performing arithmetic operations💪.

Today we'll write a useful Bash script🧑💻 that performs various host availability checks on the network🌐. As an example, I'll show how to check connectivity using the `ping` utility🏓 and run a traceroute when it's lost⚡.

In this note, we will talk about file locks in Bash scripts🔒 using the specialized utility flock.

Continuing the topic of using SSH in Linux🐧. Today we'll talk about fine-tuning the client using the ~/.ssh/config📄 configuration file, as well as automatic key import into ssh-agent😎 without entering passwords.

Many users of Linux🐧 systems face the need to write the output of a particular command/script to a log file📑. In this article we will look at several ways to configure journaling (aka logging) in Linux using the popular command shell — Bash, as an example.
Enter keywords to search articles