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.
我试图弄清楚如何在整个目录上运行 yui 压缩器。我想将目录压缩到另一个名为compressed 的目录。
有什么建议吗?
假设终端中的当前工作目录包含这三个:
运行此命令:
for i in `ls css`; do java -jar yuicompressor-2.4.2.jar -o compressed/$i css/$i; done;
请注意,这不能递归地工作。