BTOA(1) General Commands Manual BTOA(1)NAME
btoa - binary to ascii conversion
SYNOPSIS
btoa [-adhor] [infile] [outfile]
OPTIONS -a Decode, rather than encode, the file
-d Extracts repair file from diagnosis file
-h Help menu is displayed giving the options
-o The obsolete algorithm is used for backward compatibility
-r Repair a damaged file
EXAMPLES
btoa <a.out >a.btoa # Convert a.out to ASCII
btoa -a <a.btoa >a.out
# Reverse the above
DESCRIPTION
Btoa is a filter that converts a binary file to ascii for transmission over a telephone line. If two file names are provided, the first in
used for input and the second for output. If only one is provided, it is used as the input file. The program is a functionally similar
alternative to uue/uud, but the encoding is completely different. Since both of these are widely used, both have been provided with MINIX.
The file is expanded about 25 percent in the process.
SEE ALSO uue(1), uud(1).
BTOA(1)
Check Out this Related Man Page
anytopnm(1) General Commands Manual anytopnm(1)NAME
anytopnm - attempt to convert an unknown type of image file to a portable anymap
SYNOPSIS
anytopnm [file]
DESCRIPTION
anytopnm converts the input image, which may be in any of dozens of graphics formats, to PBM, PGM, or PPM format, depending on that nature
of the input image, and outputs it to Standard Output.
To determine the format of the input, anytopnm uses the file program (possibly assisted by the magic numbers file fragment included with
Netpbm). If that fails (very few image formats have magic numbers), anytopnm looks at the filename extension. If that fails, anytopnm
punts.
The type of the output file depends on the input image.
If file indicates that the input file is compressed (either via Unix compress, gzip, or bzip compression), anytopnm uncompresses it and
proceeds as above with the uncompressed result.
If file indicates that the input file is encoded by uuencode or btoa, anytopnm decodes it and proceeds as above with the decoded result.
If file is - or not given, anytopnm takes its input from Standard Input.
SEE ALSO pnmfile(1), pnm(5), file(1)AUTHOR
Copyright (C) 1991 by Jef Poskanzer.
11 July 2000 anytopnm(1)
#! /usr/bin/perl
$exp = "y";
while ($exp !="n") {
system "clear"; # clear the window
print "\nEnter the number of Widgets ordered: ";
$widgetcount = <STDIN>; #vairable to save the number of total widgerts ordered
chop $widgetcount;
print "\nEnter the number of Gidgets ordered:... (2 Replies)