Answers for "HOW TO REPLACE A CHARACTER FROM A STRING IN BASH"

1

HOW TO REPLACE A CHARACTER FROM A STRING IN BASH

string="abc"
final=${string//[a]/b}

echo $final
Posted by: Guest on May-13-2021

Code answers related to "HOW TO REPLACE A CHARACTER FROM A STRING IN BASH"

Browse Popular Code Answers by Language