Search code examples
Bash parameter substitution fails on spaces and newlines...


bashsubstitutiondouble-quotesparameter-expansion

Read More
Bash convert last character to lower...


bashshellparameter-expansion

Read More
How to use parameter expansion correctly in bash...


bashparameter-expansion

Read More
zsh parameter expansion puzzle : last argument of command...


zshparameter-expansion

Read More
Display the exit code of previous command only when it's non-zero, without using commands?...


bashps1parameter-expansion

Read More
Extract substring from string after third last occurrence of underscore...


bashparameter-expansion

Read More
Separating integer and fractional part of a decimal number...


bashparameter-expansion

Read More
Change Filename in Pipe...


shellawkpipeparameter-expansion

Read More
Parameter expansion with double caret ^^...


regexbashparameter-expansion

Read More
Why does the shell expand a quoted "$@" as multiple parameters...


stringshellshposixparameter-expansion

Read More
Bash command on a variable...


bashsyntaxparameter-expansion

Read More
How to pass a Bash command to `entr`, quoting to guard against filenames with spaces?...


bashquotingparameter-expansion

Read More
How to replace each delimiter in an arbitrary number of command-line arguments that are all delimite...


bashparameter-expansionpositional-parameter

Read More
Understanding the final `echo` in IFS=';' read -sdR -p $'\E[6n' ROW COL; echo ${ROW#...


bashansi-escapeparameter-expansion

Read More
bash read between two strings using parameter expansion expression...


bashparameter-expansion

Read More
How to split a word in the given positive or negative fraction...


bashparameter-expansion

Read More
Expanding bash vars with spaces as arguments to bash function in scripts...


bashshellparametersparameter-expansion

Read More
Extract substring before dot...


bashparameter-expansion

Read More
How to expend a variable with a quote, on the quote?...


bashparameter-expansion

Read More
How to use a string with arguments to call a script as bash would do it when interprets the command ...


bashargumentsvariable-expansionparameter-expansion

Read More
extract hostname with parameter expansion in a single assignment...


shellposixparameter-expansion

Read More
How to understand "${PATH:+:${PATH}}" in bash?...


bashparameter-expansion

Read More
In bash, replace each character of a string with a fixed character ("blank out" a string)...


bashparameter-expansionshellcheck

Read More
bash parameter-expansion: removing multiple occurences of the same character...


bashparameter-expansion

Read More
Bash param expansion "${var##pat}" behaves differently in script than in shell...


bashparameter-expansion

Read More
Trimming whitespace from the ends of a string in Zsh...


stringzshwhitespaceglobparameter-expansion

Read More
Bash parameter expansion: get entire remainder of a string after an offset...


bashparameter-expansion

Read More
How to use Shell Parameter Expansion in Perl?...


bashperlparameter-expansion

Read More
bash array slicing strange syntax in perl path: `${PATH:+:${PATH}}"`...


bashpathparameter-expansion

Read More
How can I execute a command stored in a variable?...


shellunixparameter-expansion

Read More
BackNext