Menu

andrezuc / Blog: Recent posts

Howto escape a path

You can use sed to escape slashes in path strings:

# echo "/my/path" | sed 's/\//\\\//g'

\/my\/path
Posted by Andrea Zuccherelli 2013-02-03
MongoDB Logo MongoDB