Convert Unix path to DOS path in a Korn shell script

Posted by Alceu Costa on Stack Overflow See other posts from Stack Overflow or by Alceu Costa
Published on 2009-03-13T12:33:08Z Indexed on 2010/04/25 6:03 UTC
Read the original article Hit count: 300

Filed under:
|
|
|
|

I have a variable that stores a Unix path, for example:

typeset unixpath=/foo/bar/

And I have to convert it to a DOS path using Korn shell scripting:

dospath=\\foo\\bar\\

© Stack Overflow or respective owner

Related posts about unix

Related posts about dos