Dear Eitan,

On Mon, 20 Aug 2007, Eitan Gurari wrote:
> How the `install' command will look like for the following case?
> 
> Given:
> 
>    A file:        images/a.png
>    A directory:   /n/gold/5/gurari/WWW/temp/.
>                  
> Get a variant of
> 
>     cp images/a.png /n/gold/5/gurari/WWW/temp/.
> 
> where the variant command
> 
>    (1) Creates the directory 
> 
>                /n/gold/5/gurari/WWW/temp/images/
> 
>    (2) Copies a.png from
> 
>                images/a.png
> 
>        into
> 
>                /n/gold/5/gurari/WWW/temp/images/
> 
> I tried
> 
>        install images/a.png /n/gold/5/gurari/WWW/temp/.

I couldn't figure out how to use install to do that. I misunderstood
the question.

The alternative is

        mkdir -p /n/gold/5/gurari/WWW/temp/.; cp images/a.png 
/n/hold/5/gurari/WWW/temp/.

The first command "mkdir -p" is idempotent. So if the directory
exists it does nothing.

Regards,

Kapil.
--



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to