Windows Command Line snippets

From DevOps Notebook
Revision as of 09:34, 29 August 2020 by MilosZ (talk | contribs) (Created page with "=== Search and replace string from windows command line === <pre> c:\ powershell -Command "(gc somefile.txt) -replace 'foo', 'bar' | Out-File -encoding ASCII somefile.txt" </...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Search and replace string from windows command line

c:\ powershell -Command "(gc somefile.txt) -replace 'foo', 'bar' | Out-File -encoding ASCII somefile.txt"