1.

Solve : sed windows to find - replace in file?

Answer»

hi,
my need is to find a string in a file (named file1) and substitute that string (string to substitute is testtest/) with all content of another file (named file2) and create a new file (called file3)


what i've done is :

%SED% -e "s/"test1/"//C:\User\file2" c:\User\file1 > C:\User\file3

but what i get is only susbtitution of test1\ with the path of file 2, not the content.

How can i SOLVE?

i've ALSO tried to use get-content in powershell but it not integrate well with my final.exe file remaining powershell append or getting error "cannot LOAD module PSReadline console without PSReadline." so I think it is BETTER to use SED


Thanks for your preciuos support



Discussion

No Comment Found