How to replace a line inside a file using perl?
perl -pi -e 's/Arun/Brun/g' *
it worked fine for me
but when I tried to change class/students/ato class1/students1/B, it gives an error, how to solve this problem. I tried adding a slash ( \) before each ( /), but that didn't help
perl -pi -e 's/class/students/a/class1/students1/B/g' *
source
share