Timeline for ignore whitespace at the beginning of a search pattern
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 18, 2022 at 13:43 | comment | added | Paul Maxfield | @Kusalananda thank you for your help | |
| Apr 18, 2022 at 11:02 | comment | added | Kusalananda♦ |
@PaulMaxfield In my view, yes. As soon as you deal with files in any structured format, such as YAML, JSON, XML, TOML, etc., line-oriented tools like sed can probably do some of the naive editings, but they don't know anything about the restrictions, requirements, and structure that these formats have. Also, injecting shell variables into GNU sed specifically is dangerous, unless you have full control over the contents of those variables.
|
|
| Apr 18, 2022 at 10:58 | comment | added | Paul Maxfield | so yq would be the correct tool to use in this circumstance and editing yaml files? | |
| Apr 18, 2022 at 10:50 | vote | accept | Paul Maxfield | ||
| Apr 18, 2022 at 10:49 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 52 characters in body
|
| Apr 18, 2022 at 10:49 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 203 characters in body
|
| Apr 18, 2022 at 10:48 | comment | added | Paul Maxfield | sorry I should have passed in 7.17.4 as a variable | |
| Apr 18, 2022 at 10:40 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 63 characters in body
|
| Apr 18, 2022 at 10:35 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 280 characters in body
|
| Apr 18, 2022 at 10:34 | comment | added | Stéphane Chazelas |
[[:blank:]] usually matches a lot more blank characters than just space or tab, though in a yaml file, you're unlikely to find any other ones than space and tab.
|
|
| Apr 18, 2022 at 10:30 | history | answered | Kusalananda♦ | CC BY-SA 4.0 |