Skip to main content

You need to escape the special characters with a backslash \\ in front of the special character, e.g.:

eg. sed 's/\*/t/g' test.txt > test2.txt

You need to escape the special characters with a backslash \ in front of the special character.

eg. sed 's/\*/t/g' test.txt > test2.txt

You need to escape the special characters with a backslash \ in front of the special character, e.g.:

sed 's/\*/t/g' test.txt > test2.txt

Source Link
Karthik K
  • 421
  • 4
  • 11

You need to escape the special characters with a backslash \ in front of the special character.

eg. sed 's/\*/t/g' test.txt > test2.txt