104 | | === !TextReplace Example !#2 === |
105 | | |
106 | | As of April 2008 textreplace will update files in place, so the infile/outfile syntax is not needed: |
107 | | {{{ |
108 | | textreplace -std -t bin/o4w_env.bat |
109 | | }}} |
110 | | will apply the standard mapping change; this: |
111 | | {{{ |
112 | | #!html |
113 | | <blockquote><pre>@echo off |
114 | | set OSGEO4W_ROOT=<b>@osgeo4w@</b> |
115 | | PATH=%OSGEO4W_ROOT%\bin;%PATH% |
116 | | for %%f in ("%OSGEO4W_ROOT%"\etc\ini\*.bat) do call "%%f" |
117 | | @echo on</pre></blockquote> |
118 | | }}} |
119 | | to this: |
120 | | {{{ |
121 | | #!html |
122 | | <blockquote><pre>@echo off |
123 | | set OSGEO4W_ROOT=<b>X:\Path\to\OSGeo4W</b> |
124 | | PATH=%OSGEO4W_ROOT%\bin;%PATH% |
125 | | for %%f in ("%OSGEO4W_ROOT%"\etc\ini\*.bat) do call "%%f" |
126 | | @echo on</pre></blockquote> |
| 104 | Note: As of April 2008 textreplace will update files in place, so the infile/outfile syntax is not needed. Also `-std` is shorthand for for `-map @osgeo4w@ %OSGEO4W_ROOT%` so the above becomes simply: |
| 105 | {{{ |
| 106 | textreplace -std -t httpd.d/httpd_gmap.conf |