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.
いくつかのサブディレクトリ{users}、たとえば「Michael」、「Jackson」などのフォルダがあります。各userdirに他のサブディレクトリがあるpp。:cur、newおよびtmp、これらはMaildirです。
cur
new
tmp
すべてのファイル/メールを各ユーザーからnewに移動できるスクリプトが必要です。cur
どうすればこのようなことを始められますか?
現在のディレクトリがすべてのユーザーを含むディレクトリであると仮定すると、次のことができます。
for user in *; do mv "$user"/new/* "$user"/cur/.;done