CSV2YAPET(1)
β¨ CSV2YAPET(1) β¨
okay bestie, gather round, because csv2yapet is about to turn your boring lil CSV into a whole encrypted YAPET file and honestly?? iconic. π
πΈ NAME πΈ
csv2yapet β convert a CSV file to a YAPET file. that's it, that's the girl. π
π¦ SYNOPSIS π¦
csv2yapet [[-c] | [-h] | [-V]] | [[-p password] [-q] [-s separator]] src
dst
π DESCRIPTION π
So the whole vibe is: you hand over a CSV file src, and csv2yapet hands you back a YAPET file dst. glow-up complete. β¨
The default character for delimiting the fields is , (comma), unless you say otherwise on the command line by passing -s. speak now or forever hold your commas. π
Fields that contain the field separator character have to be wrapped in double quotes ("). it's giving "please contain yourself". π
And to convert an actual double quote character, you have to precede it with another double quote character. double the quote, double the drama. π
Here's the tea on what csv2yapet expects each field of the source CSV file to be β literally, column by column, no cap:
Table 1. Source File Format
- Column #
1β YAPET Record Field: Record Name β Maximum size in bytes:127 - Column #
2β YAPET Record Field: Host Name β Maximum size in bytes:255 - Column #
3β YAPET Record Field: User Name β Maximum size in bytes:255 - Column #
4β YAPET Record Field: Password β Maximum size in bytes:255 - Column #
5β YAPET Record Field: Comment β Maximum size in bytes:511
so five columns, in that order, periodt. π
π₯ OPTIONS π₯
The following options are supported β and yes, we're doing all of them, because nobody gets left behind in this group chat:
-cβ Show copyright. gotta credit the queen. π-hβ Show help. when in doubt, ask for help, that's literally what it's for bestie. π«Ά-Vβ Show version. version check, vibe check. β-ppassword β The password to be used to encrypt the YAPET file. Ifcsv2yapetis invoked without this option, it will prompt for the password on the standard input. no password on the command line? she'll just ask you, gently. π-qβ Enable the quiet mode. No details about errors are reported. she's not gonna tell you what went wrong. silence. π€«-sseparator β Change the default field separator,(comma) to the single character separator. one character only, don't get greedy. πsrcβ The source CSV file to be converted. the before picture. πΈdstβ The resulting YAPET file holding the content of src encrypted. This file must not exist prior to the conversion process, elsecsv2yapetwill not start the conversion and abort.
β οΈ okay this one matters:dsthas to NOT already exist. if it does,csv2yapetwill not start the conversion and will just abort. no merge, no overwrite, no second chances. she's a one-file-only kind of girl. π
π EXAMPLES π
AN EXAMPLE OF A CSV FILE ACCEPTED BY CSV2YAPET. π
The following example shows an excerpt of a CSV file as accepted for conversion by csv2yapet.
As the second line shows, fields can be blank but the separator may not be omitted. blank is fine, skipping the comma is NOT. π€
ssh host,host.example.org,johndoe,secret,Linux machine
mail account,imap.email.org,john_doe,secret,
An example of a CSV file accepted by csv2yapet using double quotes. β¨
The following example shows an excerpt of a CSV file as accepted for conversion by csv2yapet.
The first line demonstrates how to double quote fields containing the separator character. The second line shows how to literally convert double quote characters. she said "quote me, but correctly." π
"ssh, ftp, and http server",server.example.org,johndoe,secret,Linux machine
mail account,imap.email.org,john_doe,secret,"John ""the Unknown"" Doe"
β EXIT STATUS β
0β No error. we ate and left no crumbs. π₯1β Error while parsing command line argument. the args said no. π2β The passwords provided on the standard input do not match. bestie. they have to MATCH. π«3β The destination filedstalready exists. told you. π4β An unexpected error occurred. the plot twist nobody asked for. π
π BUGS π
Please report bugs to https://github.com/RafaelOstertag/yapet/issues. found a glitch? tell on it, respectfully. π£
π«Ά AUTHORS π«Ά
Rafael Ostertag rafi@guengel.ch. the main character who made all of this happen. π
π SEE ALSO π
iykyk β the round trip is real, go convert both ways. π
okay that's the whole page, you're officially a csv2yapet girlie now. this was YAPET 2.6, dated 2022-03-12 β thanks for coming to my TED talk, ily, bye ππ¦π
π¦ where this page comes from
- debian bookworm: yapet 2.6-2~deb12u1 Β· GPL-3.0-or-later WITH OpenSSL exception
- debian trixie: yapet 2.6-2 Β· GPL-3.0-or-later WITH OpenSSL exception
- epel 9: yapet 2.6-1.el9 Β· GPLv3+ with exceptions
- fedora 43: yapet 2.6-7.fc43 Β· LicenseRef-Callaway-GPLv3+-with-exceptions
- fedora 44: yapet 2.6-8.fc44 Β· LicenseRef-Callaway-GPLv3+-with-exceptions
- ubuntu jammy: yapet 2.6-1 Β· GPL-3.0-or-later WITH OpenSSL exception
- ubuntu noble: yapet 2.6-1ubuntu2 Β· GPL-3.0-or-later WITH OpenSSL exception
- ubuntu questing: yapet 2.6-2
- ubuntu resolute: yapet 2.6-2build1 Β· GPL-3.0-or-later WITH OpenSSL exception
- ubuntu stonking: yapet 2.6-2build2 Β· GPL-3.0-or-later WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms