Timeline for Need to find and replace the semantic version expression from within a config file using sed
Current License: CC BY-SA 4.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 24, 2023 at 10:23 | comment | added | Kusalananda♦ |
@VikasArora This is what Gilles is showing. Parsing a JSON file is best done with a JSON-aware tool, such as the most excellent jq utility, or with some library, like what Gilles is showing.
|
|
| Jan 23, 2023 at 17:09 | history | edited | Gilles Quénot | CC BY-SA 4.0 |
deleted 255 characters in body
|
| Jan 23, 2023 at 16:53 | history | edited | Gilles Quénot | CC BY-SA 4.0 |
added 259 characters in body
|
| Jan 23, 2023 at 16:50 | comment | added | Vikas Arora | Thanks Gilles for your solution, however i need to read the json version from the bash file and replace it using regex and sed (unless some command can achieve it) | |
| Jan 23, 2023 at 16:45 | comment | added | Kusalananda♦ |
Replacing with jq+sponge: jq --arg new '3.0.0' '.version = $new' file | sponge file
|
|
| Jan 23, 2023 at 16:39 | history | edited | Gilles Quénot | CC BY-SA 4.0 |
added 551 characters in body
|
| Jan 23, 2023 at 16:32 | history | edited | Gilles Quénot | CC BY-SA 4.0 |
added 131 characters in body
|
| Jan 23, 2023 at 16:26 | history | edited | Gilles Quénot | CC BY-SA 4.0 |
added 131 characters in body
|
| Jan 23, 2023 at 16:09 | history | edited | Gilles Quénot | CC BY-SA 4.0 |
added 366 characters in body
|
| Jan 23, 2023 at 15:56 | history | edited | Gilles Quénot | CC BY-SA 4.0 |
added 267 characters in body
|
| Jan 23, 2023 at 15:48 | history | edited | Gilles Quénot | CC BY-SA 4.0 |
deleted 238 characters in body
|
| Jan 23, 2023 at 15:31 | history | answered | Gilles Quénot | CC BY-SA 4.0 |