This works to replace tom with sam in a file:
sed 's/tom/sam/g' file_1 > file_2
But this does not:
sed 's/*****/sam/g' file_1 > file_2
To replace the special characters ***** with the word sam. I have tried with a slash \* but errors.
\*and what the errors you got?sed 's/\*\*\*\*\*/sam/g'