Shell scripts to delete old Jenkins builds
Examples of shell scripts to delete old Jenkins builds based on dates, size, and excluded filters.
Examples of shell scripts to delete old Jenkins builds based on dates, size, and excluded filters.
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.
Examples of compact bash scripts for building long flat text files.