simple.

mkdir /home/staff/*/Maildir

or if they're really many then,

----------------
#!/bin/tcsh (Yes, I prefer this to bash sometimes)
foreach i (/home/staff/*)
  mkdir $i/Maildir
end
--------------

or,

find /home/staff/ -type d -maxdepth 1 -exec mkdir \{\}/Maildir \;

<grin>

Peter



On Thu, 2003-10-30 at 12:09, Joseph Mpora wrote:
> Hullo All,
> 
> Does anyone know how to replicate a folder in multiple locations
> 
> Eg. under /home/staff/<many usernames>
> 
> I want to create a Maildir in each of these home folders. Is there a single 
> command I can use instead of doing a mkdir /home/staff/<username>/Maildir for 
> each of them?
> 
> Joseph
> 
> 
> 
> ---------------------------------------------
> This service is hosted on the Infocom network
> http://www.infocom.co.ug



---------------------------------------------
This service is hosted on the Infocom network
http://www.infocom.co.ug

Reply via email to