RE: help with cp or mkdir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you all very much this was a heck of a lot easier then going from
dir to dir :) thank you very much to all and thank you very much Jay.

Joe..

*Create the following script (below).  The #! /bin/sh sould be the first
*line.   Make the file executable with   'chmod 700 filename'
*then run it.      ./filename
*Look at the output and make sure all of the "Creating......."
*lines look correct.  If not, you might have to tweek the script.
*When it looks right, uncomment the mkdir line and run it again.
*Worse case senario is you might create a public_html where you didn't
*want on.  If it's just a few, delete them manually.  (Beats creating
*200+ manually.)  Or if the file already exists, or path doesn't
*exist, you might get some error.  No big deal.
*
*-- Jay Crews
*jpc@xxxxxxxxxxxx
*
*
*
*#! /bin/sh
*#
*#
*for dir in `grep '/home/[a-z]/' /etc/passwd | cut -d: -f6` ;do
*  echo Creating ${dir}/public_html
*  # mkdir ${dir}/public_html
*done
*
*
*
*--
*Psyche-list mailing list
*Psyche-list@xxxxxxxxxx
*https://listman.redhat.com/mailman/listinfo/psyche-list



-- 
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux