把 Windows 路径名转换为等效的 UNIX 路径名或者相反

来源:百度文库 编辑:神马文学网 时间:2024/05/03 14:23:38
顺便说一句,如果要把 Windows 路径名转换为等效的 UNIX 路径名或者相反,可以试试内置命令 cygpath。在默认情况下,cygpath 产生 UNIX 路径名。运用 -w 选项产生 Windows 路径。
$ cygpath -w /cygwin/c/Program\ Files/Internet\ Exp lorer/IExp LORE.EXE 
c:\Program Files\Internet Exp lorer\IExp LORE.EXE