Replace
word or text in a file with command line in Windows
powershell -Command "(gc BeforeReplace.txt) -replace 'OrginalTextToBeReplaced', 'NewTextToBeReplaced' | Out-File -encoding ASCII AfterReplace.txt"
powershell -Command "(gc BeforeReplace.txt) -replace 'OrginalTextToBeReplaced', 'NewTextToBeReplaced' | Out-File -encoding ASCII AfterReplace.txt"
No comments:
Post a Comment