C: Macros usages examples
This post presents examples of how to use macros to construct strings in definitions in C.
This post presents examples of how to use macros to construct strings in definitions in C.
In this post, I would like to share an idea of a solution of an interesting task concerning manipulating multiple bash scripts running in background via prompts from another bash script. I will show you an example of a script implementing such solution. The example is simplified, but it fully illustrates the idea.
This post shows an example of a bash script which creates a Docker container, copies a bash script to it, executes that script from the host, and saves its output on the host machine.
Examples of how to check if a Docker container with a given name exists and get its status in bash scripts.
A straightforward way to use parameters in a Bash script is to execute the script with the parameters values listed after the script file name and to use these values in the script via ${1}..${n} variables, where n is the number of the parameters.
An example of how to prevent a Docker container from exiting with return code 0 immediately after creation.
Examples of compact bash scripts for building long flat text files.
By default, in order to access Grafana dashboards, a user needs to log in. In some cases, if all Grafana dashboards are public to all your users, it is more convenient to access a dashboard directly, without logging in. The steps to do this are described below.
This tutorial shows how to:
An example of how to replace some sequence of characters by another sequence constructed dynamically, using a variable value, in all files located in the current directory.