Created
November 19, 2022 18:37
-
-
Save antoineclaval/03b3d6614f91e059067017ca7ce1d5a8 to your computer and use it in GitHub Desktop.
Bash string replace without sed / awk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| string="abc" | |
| final=${string//[a]/b} | |
| echo $final | |
| // "bbc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment