Timeline for Bash script regex on parameter [duplicate]
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 25, 2023 at 14:14 | comment | added | markp-fuso |
@vaso123 var=$(command) is a pretty basic concept in (unix/linux) shell scripting; not really worthy of an answer; I would recommend reviewing the linked 'duplicates' for other, more efficient, methods of parsing a string; good luck
|
|
Jun 25, 2023 at 14:07 | comment | added | vaso123 | @markp-fuso Thank you, it should be an answer.... | |
Jun 25, 2023 at 14:02 | history | closed |
jonrsharpe F. Hauri - Give Up GitHub bash Users with the bash badge can single-handedly close bash questions as duplicates and reopen them as needed. |
Duplicate of Capturing Groups From a Grep RegEx, How to extract domain name from url? | |
Jun 25, 2023 at 13:51 | comment | added | markp-fuso |
assuming the objective is to capture the results of the echo | grep in the variable DOMAIN ... DOMAIN=$(echo "$1" | grep -P -o $REGEX)
|
|
Jun 25, 2023 at 13:46 | review | Close votes | |||
Jun 25, 2023 at 14:03 | |||||
Jun 25, 2023 at 13:28 | comment | added | Ed Morton | As the bash tag you used instructs - "For shell scripts with syntax or other errors, please check them at shellcheck.net before posting them here." | |
Jun 25, 2023 at 13:27 | history | edited | Cyrus |
edited tags
|
|
Jun 25, 2023 at 13:24 | history | edited | jonrsharpe | CC BY-SA 4.0 |
deleted 64 characters in body
|
Jun 25, 2023 at 13:23 | history | asked | vaso123 | CC BY-SA 4.0 |