Replace a string with sed on linux using bash
Page 1 of 1
Replace a string with sed on linux using bash
- Code:
sed 's+var+/var+g' test.txt > new.txt
For example, this will change
- Code:
var/bla
- Code:
/var/bla
Very usfull for fixing errors made with setfacl command
Similar topics
» Linux Bash Replace Strings in PHP Files
» Bash Psychic Game For Linux Bash
» Linux BASH Script Running Commands and Functions From Bash Script and saving to varables
» Resolving Mac From IP Linux Bash
» Linux Xmessege Bash Example
» Bash Psychic Game For Linux Bash
» Linux BASH Script Running Commands and Functions From Bash Script and saving to varables
» Resolving Mac From IP Linux Bash
» Linux Xmessege Bash Example
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum