windows - sed 可以在 Windows 中递归吗?

标签 windows recursion sed directory

我正在使用sed for windows对一些 javascript 文件进行搜索和替换,我想知道是否使用其他一些实用程序可以使其递归工作。

最佳答案

是的,您可以使用 for 循环和 dir/s,也可以使用 find for windows 。例如

find c:\path -iname "*.txt" -exec sed "s/old/new/g" "{}" ;

关于windows - sed 可以在 Windows 中递归吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2641114/

相关文章:

javascript - 基于 promise 的递归函数中的问题

ruby-on-rails - 在 VM Vagrant Box 中创建 Windows 上的 Ruby on Rails 环境

windows - 恢复 Azure Web 角色网站?

windows - 我可以使用 win32 Setup API 检测 USB 设备何时插入或拔出吗?

perl - 想要从该行获取第一个单词和从模式 '-' 开始的单词

regex - 使用 sed 转义特殊字符

perl - 什么脚本可以帮助解析一组错误换行的行?

java - 使用 RCP 或 FTP 将文件从远程 UNIX 计算机复制到本地 Windows 计算机

Python数字组合生成器需要递归

haskell - 如何在 Haskell 中简化嵌套 if 使用以返回值