Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set FILENAME=%~f1
- sed 's/Some Pattern/%FILENAME%/' inputfile
- set FILENAME=%~f1
- cygpath "s|Some Pattern|%FILENAME%|" >sedcmd.tmp
- sed -f sedcmd.tmp inputfile
- del /q sedcmd.tmp
- set FILENAME=%~f1
- echo s/Some Pattern/%FILENAME%/ | sed -e "s/\/\\/g" >sedcmd.tmp
- sed -f sedcmd.tmp inputfile
- del /q sedcmd.tmp
- > cygpath -m c:somepath
- c:/some/path
Add Comment
Please, Sign In to add comment