Use sed to replace all backslashes with forward slashes

sed can perform text transformations on input stream from a file or a pipeline. Example:

echo 'C:\foo\bar.xml' | sed 's/\\/\//g'

outputs:

C:/foo/bar.xml

Leave a Comment