Name

add - Append files

Syntax

add filetarget

Description

Use add to append one or more files to a target file. The source file(s) may be in another directory, in which case a path must be given.

If the target is a directory, the source files are added to files in the directory using their original filenames.

If the target file does not exist, it is created, and the contents of the source files are appended.

If a source file is given, but no target file argument, the current working directory is assumed as the target area, preserving the original filename, though add refuses to add a file to itself.

Example

add stratos.5 ../mdavis/stratos.novel

This adds the file “stratos.5”, assuming the current directory is $/usr/brin, to the file “stratos.novel” in the “$/usr/mdavis” directory. If “stratos.novel” was omitted, the original filename “stratos.5” would have been used.

See Also

cat(C), cp(C), mv(C)