My task is to replace multiple entries for \\\\\\\\server\\\path1\\\\path2\\\\ with \\\\server\\path1\\path2\\ in myfile.txt  (removing the superfluous backslashes).I have tried using sed for this but it found nothing to replace:sed 's:\\\\server\\path1\\path2\\:\\server\path1\path2\:g' myfile.txtI also tried to escape the backslashes but it also found nothing to replace:sed 's:\\\\\\\\server\\\\path1\\\\path2\\\\:\\\\server\\path1\\path2\\:g' myfile.txtThis may be a lame question but I'm really stuck with it. I've tried searching all over for a way to do this via a command but nothing I try works.
Searching and replacing a windows style path using sed
text processing;sed