Skip to main content

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

Karthik K
  • 421
  • 4
  • 11