xref: /netbsd-src/games/bcd/bcd.6 (revision 576c8e30e11106e44e5a854e108c3eed8bbc4091)
1*576c8e30Swiz.\"	$NetBSD: bcd.6,v 1.19 2019/09/02 08:26:00 wiz Exp $
2101657d1Scgd.\"
3101657d1Scgd.\" Copyright (c) 1988, 1991, 1993
4101657d1Scgd.\"	The Regents of the University of California.  All rights reserved.
561f28255Scgd.\"
661f28255Scgd.\" Redistribution and use in source and binary forms, with or without
761f28255Scgd.\" modification, are permitted provided that the following conditions
861f28255Scgd.\" are met:
961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright
1061f28255Scgd.\"    notice, this list of conditions and the following disclaimer.
1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright
1261f28255Scgd.\"    notice, this list of conditions and the following disclaimer in the
1361f28255Scgd.\"    documentation and/or other materials provided with the distribution.
14e5aeb4eaSagc.\" 3. Neither the name of the University nor the names of its contributors
1561f28255Scgd.\"    may be used to endorse or promote products derived from this software
1661f28255Scgd.\"    without specific prior written permission.
1761f28255Scgd.\"
1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2161f28255Scgd.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2861f28255Scgd.\" SUCH DAMAGE.
2961f28255Scgd.\"
30101657d1Scgd.\"	@(#)bcd.6	8.1 (Berkeley) 5/31/93
3161f28255Scgd.\"
32b9c252d7Ssevan.Dd September 1, 2019
33fc2eb0a5Swiz.Dt BCD 6
34defa0d9fSjtc.Os
35defa0d9fSjtc.Sh NAME
363d21b08dScgd.Nm bcd ,
373d21b08dScgd.Nm ppt ,
38defa0d9fSjtc.Nm morse
393d21b08dScgd.Nd "reformat input as punch cards, paper tape or morse code"
40defa0d9fSjtc.Sh SYNOPSIS
41492d7c20Slukem.Nm
42defa0d9fSjtc.Op Ar string ...
43defa0d9fSjtc.Nm ppt
4414498367Skim.Op Fl d Ns \&| Ns Ar string ...
45defa0d9fSjtc.Nm morse
4613aa6047Shubertf.Op Fl ds Ar string ...
47defa0d9fSjtc.Sh DESCRIPTION
48101657d1ScgdThe
49990562bfSwiz.Nm ,
50defa0d9fSjtc.Nm ppt
51defa0d9fSjtcand
52defa0d9fSjtc.Nm morse
53f90c0410Shubertfcommands read the given input and reformat it in the form of
54101657d1Scgdpunched cards, paper tape or morse code respectively.
55101657d1ScgdAcceptable input are command line arguments or the standard input.
56101657d1Scgd.Pp
57101657d1ScgdAvailable option:
58101657d1Scgd.Bl -tag -width flag
59101657d1Scgd.It Fl s
60defa0d9fSjtcThe
61defa0d9fSjtc.Fl s
62101657d1Scgdoption for morse produces dots and dashes rather than words.
63d5f8b67eShubertf.It Fl d
649b286146SwizDecode
659b286146Swiz.Nm ppt
669b286146Swizoutput, or
679b286146Swiz.Nm morse
68fd80b853Spgoyetteoutput consisting of dots and dashes (as generated by using the
69d5f8b67eShubertf.Fl s
7014498367Skimoption).
71101657d1Scgd.El
72303b1c74Shubertf.Sh SEE ALSO
73303b1c74Shubertf.Rs
74303b1c74Shubertf.%B "ISO 1681:1973: Information processing--Unpunched paper cards--Specification"
75303b1c74Shubertf.Re
76303b1c74Shubertf.Rs
77303b1c74Shubertf.%B "ISO 1682:1973: Information processing--80 columns punched paper cards--Dimensions and location of rectangular punched holes"
78303b1c74Shubertf.Re
79303b1c74Shubertf.Rs
80303b1c74Shubertf.%B "ECMA-10: ECMA Standard for Data Interchange on Punched Tape"
81303b1c74Shubertf.Re
82303b1c74Shubertf.Rs
83303b1c74Shubertf.%B "ITU-T Recommendation F.1: Operational provisions for the international public telegram service"
84303b1c74Shubertf.%O "Division B, I. Morse code"
85303b1c74Shubertf.Re
86b9c252d7Ssevan.Sh HISTORY
87b9c252d7SsevanA
88b9c252d7Ssevan.Nm bcd
89b9c252d7Ssevanutility appeared in
90b9c252d7Ssevan.At v1 .
91b9c252d7SsevanThe current implementation originates from a rewrite included in
92*576c8e30Swiz.Bx 4.3 reno .
93