help-octave
[Top][All Lists]
Advanced

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

Re: how to copy a file to other directory in octave?


From: Thomas Weber
Subject: Re: how to copy a file to other directory in octave?
Date: Wed, 13 Sep 2006 11:47:02 +0200

Hi, 

somehow my answer didn't come through to the list; apologies if it now
appears twice.

Am Dienstag, den 12.09.2006, 11:09 -0700 schrieb frank wang:
> Could anyone tell me how to copy a file from one directory to another
> directory in octave? Here is what I want to do.

Use the 'rename' function:

(v1 and v2 are directories; v2 is empty, v1 contains file.old)

octave2.9:1> pwd
/tmp/v1
octave2.9:2> ls
file.old
octave2.9:3> rename ('file.old', '../v2/file.new')
ans = 0
octave2.9:4> ls
octave2.9:5> ls ../v2
file.new

Regards
        Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]