# Re: Removing Backslash with Sed

• From: John Wendel <john wendel metnet navy mil>
• To: For users of Fedora Core releases <fedora-list redhat com>
• Subject: Re: Removing Backslash with Sed
• Date: Thu, 07 Sep 2006 14:40:41 -0700

```R. G. Newbury wrote:
```
I have large number of scanned images of documents, which have been 'managed' by a windows program which produces an index page with a link to each document, and a document page with links to each page in the document. There are about 1400 document pages.
```Unfortunately the windows program produces a link in the form:
That is: containing backslashes.

```
I have tried to figure our a search/replace line for sed but nothing I have tried works...in part I assume because the '\' is itself the 'escape' character. Even so, search expressions like '..\\' do not work.
```
```
ANyone know how to do this? There are about 20 backslashes in each document index page, so I am not even considering a manual method... although that works...
```Geoff

```
```
Have you tried the "tr" program.  tr '\\' '/' < old > new

Regards,

John

```