Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个控制台命令可以替换目录中的所有 PHP 文件。然后它提供给 xgettext 程序。
sed "s/\/\/_/_/g" *.php | xgettext -o output.pot --language=PHP - --from-code=UTF-8
如何更改它以便 sed 遍历所有子目录中的所有 PHP 文件?