Answers for "linux replace string in"

13

linux replace string in all files

sed -i 's/old-text/new-text/g' input.txt
Posted by: Guest on March-31-2020
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

Browse Popular Code Answers by Language