replacing the character "\" in a file

I am using sed to replace things like "," and tabs in a file, but what is the code for replacing a \ ????

Hope this will help you

echo "hai \\" | sed 's/\\/replaced/'

Hi there,
this is what I'm running from the command line

sed -e s/\\/ / TalkTalk5.txt > bob.slash

but I'm still getting a garbed error message. Any ideas ?????

You are missing single quote. Try this

sed -e 's/\\/ /'  TalkTalk5.txt > bob.slash

Cheers mona,
I thought I was going mad - that what happens when you look at the screen for too long

It happens :slight_smile: