- 论坛徽章:
- 39
|
本帖最后由 关阴月飞 于 2014-06-25 11:12 编辑
回复 14# sandermansxj
可能是sed版本问题了.....- c:\pf >sed "/<windows_root_path/s#>[^<]*#>.\\#" test.txt
- <windows_root_path cmm_root_path_var="APPS_BUILD_ROOT">.\</windows_root_path>
- <windows_root_path cmm_root_path_var="MPSS_BUILD_ROOT">.\</windows_root_path>
- <windows_root_path cmm_root_path_var="BOOT_BUILD_ROOT">.\</windows_root_path>
- <windows_root_path cmm_root_path_var="TZ_BUILD_ROOT">.\</windows_root_path>
- <windows_root_path cmm_root_path_var="RPM_BUILD_ROOT">.\</windows_root_path>
- <windows_root_path cmm_root_path_var="WCNSS_BUILD_ROOT">.\</windows_root_path>
- c:\pf >sed --version
- GNU sed version 4.2.1
- Copyright (C) 2009 Free Software Foundation, Inc.
- This is free software; see the source for copying conditions. There is NO
- warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
- to the extent permitted by law.
- GNU sed home page: <http://www.gnu.org/software/sed/>.
- General help using GNU software: <http://www.gnu.org/gethelp/>.
- E-mail bug reports to: <bug-gnu-utils@gnu.org>.
- Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
复制代码 |
|