[techtalk] Script file help

Phil Savoie Phil.Savoie at learnix.ca
Tue May 9 11:36:44 EST 2000


Hi Kath,

Perhaps this is what what your are looking for? Just substitute your
dirs for my testdirs.

Phil


Kath wrote:
> 
> I need some help making a small script file.  What I need it do is copy the
> directories on one HD to another.
> 
> the source directory is /mnt/DOS_hda1/Program Files/Apache Group/Apache/htdocs/
> 
> the destination directory is /home/httpd/html/
> 
> - Kathy
> 
> _______________________________________________
> techtalk mailing list
> techtalk at linuxchix.org
> http://www.linux.org.uk/mailman/listinfo/techtalk-------------- next part --------------
#!/bin/bash

cd /root/testdir

for i in `ls`
do
cp -r $i /root/testdir2
done
cd /root/testdir2
ls -R testdir2 | more


More information about the Techtalk mailing list