Cygwin convert windows path to linux path: Difference between revisions

m Text replacement - "== reference ==" to "== References =="
 
(One intermediate revision by one other user not shown)
Line 24: Line 24:
//remote/test path/
//remote/test path/


//method2
//method2: replace backward slash with forward slash
$ path = '\\remote\path\'
$ path = '\\remote\path\'
$ echo "${path//\\//}"
$ echo "${path//\\//}"
Line 79: Line 79:
</pre>
</pre>


== reference ==
== References ==
* [http://cygwin-lite.sourceforge.net/html/cygpath.html Cygwin Utilities: cygpath]
* [http://cygwin-lite.sourceforge.net/html/cygpath.html Cygwin Utilities: cygpath]
* [http://superuser.com/questions/885700/cygwin-convert-windows-path-to-unix-then-change-dir/1068015#1068015 Cygwin convert windows path to unix then change dir - Super User]
* [http://superuser.com/questions/885700/cygwin-convert-windows-path-to-unix-then-change-dir/1068015#1068015 Cygwin convert windows path to unix then change dir - Super User]