<x-flowed>At 09:14 AM 2/9/01 -0600, [EMAIL PROTECTED] wrote:
>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?
David,
-a is a shortcut for -dpR
> > $ 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...
Yes it does, and I'm glad someone can write things like this. As you are
already well aware, I'm probably the most inept admin in the history of unix.
Free time has its virtues though. :)
--
Mike Noyes <[EMAIL PROTECTED]>
http://leaf.sourceforge.net/
_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel
</x-flowed>