Mnwci cp() Function

Syntax

cp(filename, newfile)

Description

The cp() function copies a file to another named file or destination.

If the destination is a directory, filename will be created within the destination directory.

Example

cp("/home/mwnci/foobar", "/tmp/newfoobar")
cp("/home/mwnci/foobar", "/tmp")