|
From: Keith M. <kei...@to...> - 2007-06-19 17:21:40
|
Andrzej Ziarkowski wrote: > i'm totally newbie with sed/MSYS. I tried to madofy one simply > batch file, but i got problems with path convertion. Are you trying to run windows batch files from the MSYS prompt? If so, you really need to know a lot about what you are doing, for this is not straightforward -- not something for newbies to try! > I have "small problem" with sed in my windows batch file: the > output file is not included any slash in the file path. Or, are you trying to run MSYS commands, (sed in this case), from a cmd.exe prompt? (This would be the same as using MSYS commands within a Woe32 batch file). This is more achievable, but again, it helps if you know what you are doing. > I mean that from my variable UNLOADFILE "C:\Temp\biblio.001" sed > is making "C:Tempbiblio.001". > > How i can stoping this behavior of sed? sed is a POSIX command, and it uses backslashes as literal escapes; if you want to pass them through, so they can be seen as dir/file name separators in Woe32's dyslexic manner, then you have to escape them; (POSIX uses a regular slash as the dir/file name separator). Thus, you need "C:\\Temp\\biblio.001". Since you profess to be a newbie, I'd really recommend *not* trying to mix MSYS/POSIX and Woe32/cmd.exe syntax in the same environment; use MSYS commands with POSIX syntax from the MSYS bash prompt, or in sh scripts, and don't try to use them from cmd.exe. HTH, Keith. |