$path=~s#^(\w):\\#/cygdrive/$1/#; # from C:\ to /cygdrive/c/ <-- required by cgrsync $path=~s#\\#/#g; # from \ (win style) to linux style (/)