.\" Automatically generated by Pandoc 2.9.2.1
.\"
.TH "s1kd-sns" "1" "2021-04-16" "" "s1kd-tools"
.hy
.SH NAME
.PP
s1kd-sns - Organize data modules based on an SNS
.SH SYNOPSIS
.IP
.nf
\f[C]
s1kd-sns [-D
] [-d ] [-cmnpsh?] [ ...]
\f[R]
.fi
.SH DESCRIPTION
.PP
The \f[I]s1kd-sns\f[R] tool can be used to automatically organize data
modules in a CSDB in to a directory hierarchy based on a specified SNS
structure.
It may also be used to simply print an indented text version of an SNS
structure.
.SH OPTIONS
.TP
-c, --copy
Copy files in to the SNS subfolders instead of linking them.
.TP
-D, --srcdir
The flat directory containing the data modules to organize.
By default, the current directory is used.
.TP
-d, --outdir
The root directory of the new SNS structure.
By default, the tool will use the name \[dq]SNS\[dq] in the current
directory.
.TP
-h, -?, --help
Show usage message.
.TP
-m, --move
Move files in to the SNS subfolders instead of linking them.
.TP
-n, --only-code
Use only the SNS codes when naming directories.
By default, each directory will be named in the form of \[dq]snsCode -
snsTitle\[dq].
.TP
-p, --print
Print the SNS structure only.
.TP
-s, --symlink
Use symbolic links to organize the SNS instead of the default hard
links.
.TP
--version
Show version information.
.TP
Read the SNS structure from the specified BREX data module.
If none is specified, the tool will read from stdin.
.PP
In addition, the following options allow configuration of the XML
parser:
.TP
--dtdload
Load the external DTD.
.TP
--huge
Remove any internal arbitrary parser limits.
.TP
--net
Allow network access to load external DTD and entities.
.TP
--noent
Resolve entities.
.TP
--parser-errors
Emit errors from parser.
.TP
--parser-warnings
Emit warnings from parser.
.TP
--xinclude
Do XInclude processing.
.TP
--xml-catalog
Use an XML catalog when resolving entities.
Multiple catalogs may be loaded by specifying this option multiple
times.
.SH EXAMPLE
.IP
.nf
\f[C]
$ s1kd-sns DMC-S1000D-A-08-02-0100-00A-022A-D_EN-US.XML
$ tree SNS
SNS
|_ 00 - Product, General
|_ 0 - Product, General
|_ 1 - Product, General maintenance
|_ 2 - Product, Safety
|
\&...
|_ 04 - Worthiness (fit for purpose) limitations
|_ 0 - General
|_ 1 - Fatigue index calculations
|_ 2 - Operating spectrums
|_ 05 - Scheduled/unscheduled maintenance
|_ 0 - General
|_ 1 - Time limits
|_ 2 - Scheduled maintenance check lists
\&...
|_ 18 - Vibration and noise analysis and attenuation
\f[R]
.fi
.SH AUTHORS
khzae.net.