Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

HOW TO REPLACE A CHARACTER FROM A STRING IN BASH

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

echo $final
Source by reactgo.com #
 
PREVIOUS NEXT
Tagged: #HOW #TO #REPLACE #A #CHARACTER #FROM #A #STRING #IN #BASH
ADD COMMENT
Topic
Name
5+8 =