'\" t .\" Title: yapet2csv .\" Author: [see the "AUTHOR" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 02/23/2014 .\" Manual: User Commands .\" Source: yapet2csv 1.0 .\" Language: English .\" .TH "YAPET2CSV" "1" "02/23/2014" "yapet2csv 1\&.0" "User Commands" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" yapet2csv \- convert YAPET file to CSV file .SH "SYNOPSIS" .ad l .HP \w'\fByapet2csv\fR\ 'u \fByapet2csv\fR [[\fB\-c\fR] | [\fB\-h\fR] | [\fB\-V\fR]] [\fB\-H\fR] [\fB\-p\fR\ {\fIpassword\fR}] [\fB\-q\fR] [\fB\-s\fR\ {\fIseparator\fR}] {\fIsrc\fR} {\fIdst\fR} .ad .SH "DESCRIPTION" .PP Convert a YAPET file to a CSV file\&. The source file specified by \fIsrc\fR will not be modified\&. .PP The resulting CSV file \fIdst\fR has the format as shown in Table\ \&1, \(lqCSV file format\(rq\&. .sp .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .B Table\ \&1.\ \&CSV file format .TS allbox expand tab(:); cB lB. T{ Column # T}:T{ YAPET record field T} .T& c l c l c l c l c l. T{ 1 T}:T{ Record Name T} T{ 2 T}:T{ Host Name T} T{ 3 T}:T{ User Name T} T{ 4 T}:T{ Password T} T{ 5 T}:T{ Comment T} .TE .sp 1 .SH "OPTIONS" .PP \fB\-h\fR .RS 4 Show help\&. .RE .PP \fB\-c\fR .RS 4 Show copyright\&. .RE .PP \fB\-V\fR .RS 4 Show version\&. .RE .PP \fB\-H\fR .RS 4 Add header line to CSV file\&. .RE .PP \fB\-p\fR .RS 4 Use the master password \fIpassword\fR provided to decrypt \fIsrc\fR\&. The use of this option is not recommended for security reasons\&. .sp By default, \fByapet2csv\fR prompts for the master password\&. .RE .PP \fB\-q\fR .RS 4 Do not produce verbose output, except for error messages\&. By default, \fByapet2csv\fR will print a period for each converted password record to stdout\&. .RE .SH "OPERANDS" .PP \fIsrc\fR .RS 4 Source YAPET pathname which will be converted to CSV and stored in \fIdst\fR\&. If the file path does not end in \&.pet, \fByapet2csv\fR will append \&.pet to the operand\&. .RE .PP \fIdst\fR .RS 4 Pathname where the converted YAPET file will be stored\&. The file must not exist prior to invoking \fByapet2csv\fR\&. Refer to Table\ \&1, \(lqCSV file format\(rq for the format of the resulting CSV file \fIdst\fR\&. .RE .SH "EXAMPLES" .PP \fBExample\ \&1.\ \&Prompt for Master Password\fR .PP Convert the YAPET file /tmp/foo\&.pet to a CSV file /tmp/bar\&.csv\&. Master password used to decrypt foo\&.pet will be prompted for: .sp .if n \{\ .RS 4 .\} .nf $ yapet2csv /tmp/foo\&.pet /tmp/bar\&.csv .fi .if n \{\ .RE .\} .PP \fBExample\ \&2.\ \&Provide Master Password on command line\fR .PP Convert the YAPET file /tmp/foo2\&.pet to a CSV file /tmp/bar2\&.csv\&. Master password \fBsecret\fR used to decrypt foo2\&.pet is provided on command line: .sp .if n \{\ .RS 4 .\} .nf $ yapet2csv \-p secret /tmp/foo2\&.pet /tmp/bar2\&.csv .fi .if n \{\ .RE .\} .SH "EXIT STATUS" .PP .PP 0 .RS 4 Successful completion\&. .RE .PP 1 .RS 4 Error while parsing command line arguments\&. .RE .PP 2 .RS 4 File \fIdst\fR already exists\&. .RE .PP 3 .RS 4 An error occurred\&. .RE .SH "BUGS" .PP Please report bugs to \m[blue]\fBhttp://bugs\&.guengel\&.ch/\fR\m[]\&. .SH "AUTHOR" .sp Rafael Ostertag rafi@guengel\&.ch .SH "SEE ALSO" .sp \fByapet\fR(1), \fBcsv2yapet\fR(1) .SH "COPYRIGHT" .br Copyright \(co 2008, 2009, 2010, 2011, 2013, 2014 Rafael Ostertag .br