On 9 Feb 2001, at 14:39, Mike Noyes wrote:
> Thanks! I just verified that this works. I should have tried the archive
> switch before.
Don't you need the -R switch to recurse?
> $ cd /home/groups/leaf/htdocs
> $ mv yourname ..
> $ cp -a ../yourname .
> $ rm -rf ../yourname
> $ cd /home/groups/ftp/pub/leaf/devel
> $ mv yourname ..
> $ cp -a ../yourname .
> $ rm -rf ../yourname
How about this?
#!/bin/ksh
HTTP_HOME=/home/groups/leaf
FTP_HOME=/home/groups/ftp/pub/leaf/devel
tag () {
cd $1
[ ! -f $2 ] && exit 1
mv $2 ..
cp -a ../$2 . && rm -rf ../$2
}
tag $HTTP_HOME $1 || echo "http: err!"
tag $FTP_HOME $1 || echo "ftp: err!"
....makes a nice program to put in somewhere...
--
David Douthitt
UNIX Systems Administrator
HP-UX, Linux, Unixware
[EMAIL PROTECTED]
_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel