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という名前の別のディレクトリに圧縮したい。
何かアドバイス?
端末の現在の作業ディレクトリに次の 3 つが含まれていると仮定します。
次のコマンドを実行します。
for i in `ls css`; do java -jar yuicompressor-2.4.2.jar -o compressed/$i css/$i; done;
これは再帰的には機能しないことに注意してください。