Hello! My task is to remove all extra symbols from named argument. For instance I have ,,,--no-color,, option passed to script and I have to cut everything but --no-color. I've solved it via Bash code:
shopt -s extglob
option="--no-color,,"
pattern="--+([[:alpha:]]*(-[[:alpha:]]))"
while [[...