'\" t
.\"     Title: DUP
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL-NS Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 04/13/2022
.\"    Manual: BRL-CAD User Commands
.\"    Source: BRL-CAD
.\"  Language: English
.\"
.TH "DUP" "nged" "04/13/2022" "BRL\-CAD" "BRL\-CAD User Commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
dup \- Checks the specified \fIfile\fR (which is expected to contain a \fIBRL\-CAD\fR model) for names that are the same as those in the current model\&.
.SH "SYNOPSIS"
.HP \w'\fBdup\fR\ 'u
\fBdup\fR {\fIfile\fR} [\fIprefix\fR]
.SH "DESCRIPTION"
.PP
Checks the specified
\fIfile\fR
(which is expected to contain a
\fIBRL\-CAD\fR
model) for names that are the same as those in the current model\&. If a
\fIprefix\fR
is included on the command line, all names in the specified
\fIfile \fR
will have that
\fIprefix\fR
added to their names before comparison with the current model\&. This command is often used prior to invoking the
\fBdbconcat\fR
command to ensure that there are no name clashes\&.
.SH "EXAMPLES"
.PP
The first example shows the use of the
\fBdup\fR
command to check for files having the same name as those in the current model\&. The second example shows how to prefix the file names in the other model before comparing them with the names of the current model files\&.
.PP
\fBExample\ \&1.\ \&Check for files having the same name as those in the current model.\fR
.PP
mged> \fBdup other_model\&.g\fR
.RS 4
Checks
\fIother_model\&.g\fR
for names duplicating those in the current model\&.
.RE
.PP
\fBExample\ \&2.\ \&\fR
.PP

mged>\fBdup other_model\&.g abc\fR
.PP
Does the same check as in the first example, but prefixes all the names in
\fIother_model\&.g \fRwith
\fIabc\fR
before comparing with the names in the current model\&.
.SH "AUTHOR"
.PP
BRL\-CAD Team
.SH "BUG REPORTS"
.PP
Reports of bugs or problems should be submitted via electronic mail to
devs@brlcad\&.org
