Use templates inside shell scripts by substituting environment variables.
Tag: Bash
How to create custom bash prompt
Today, I will show you my personal shell prompt, so you could define your own custom bash prompt.
How disable network redirections
Create custom Bourne Again SHell package to disable network redirections and enhance system security.
Find out whether remote port is open using Bourne Again SHell network redirections.
Keeping SSH authentication agent in sync across multiple servers and terminal multiplexers is not an easy task, but can be solved by using consistent socket names used to connect to the SSH authentication agent.
Parse INI configuration file using Bash shell-script.
Store runtime configuration within shell script using simple but an effective method.
How to solve pipeline mysteries
I have already described how to inspect a pipeline, but today I will show you how to write a shell script that will help you reconstruct a whole pipeline when all you got is a process ID that is part of the pipeline.
How to inspect a pipeline
A pipeline is a sequence of multiple commands separated by the control operators. It is easy to understand as long as you see the whole picture, but I will show you how to inspect it when you have a single process ID.
Use bash
redirection and process substitution to programmatically distinguish standard error from regular output.