2 views
by

Convert all backslashes to forward slash in bash

echo 'C:\foo\bar.xml' | sed 's/\\/\//g'
# this will output:
# C:/foo/bar.xml
Welcome to Ask DevOps!
You can find quick one line answers to popular DevOps, Amazon AWS, Microsoft Azure, Google cloud services, tools & basic to advanced Linux questions!
DevOps Tools list
.. 
...