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でLinuxコマンドにexec "wrapper"を使用しています:
exec("unzip -oj tmp.zip -d tmp && rm tmp.zip");
ファイル名のスペースをアンダースコアに変換する方法を教えてください。TNX、
(現在行っているように)外部ユーティリティを使用してもかまわない場合は、renameたとえば.
rename
unzip -oj tmp.zip -d tmp && rename 's/\s/_/g' tmp/* && rm tmp.zip