What does a trailing dash do in a parameter expansion? [duplicate]
This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]
What does a trailing dash do in a parameter expansion? [duplicate]
This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]
What does a trailing dash do in a parameter expansion? [duplicate]
This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]
What does a trailing dash do in a parameter expansion? [duplicate]
This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]
What does a trailing dash do in a parameter expansion? [duplicate]
This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]
What does a trailing dash do in a parameter expansion? [duplicate]
This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]
What does a trailing dash do in a parameter expansion? [duplicate]
This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]
Search a pattern and replace next line with another pattern in Shell script
I have comma seperated file with 3 values. I want to find pattern1 , and in next line I have value 2 , which needs tobe replaced with Value 3.
What does a trailing dash do in a brace expansion?
I have this code:
set e exits the shell in a script with only functions
I have a following script.