09-11-2010
Quote:
Originally Posted by
cjcox
LANG=C TERM=lpr man ln >ln.txt
.
The code presented by cjcox does not work at all. Setting the environment variable TERM to lpr does not seem to change the behavior of man. The man command still outputs non-ASCII characters. Furthermore, because he omitted col, the resultant ln.txt is illegible when opened with KWrite. I wonder if cjcox was just kidding.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am writing the script to encrypt and decrypt content of the text file.
How can I convert ASCII to characters and backward? I need it for Bourne shell script.
Thanks::confused: (3 Replies)
Discussion started by: woody
3 Replies
2. Shell Programming and Scripting
after converting my ebcidic file to ascii i get the following output
2097152+0 records in
1797345+1 records out
Why is there a difference in number of records.
Is the converson chopping off any records.
All i am doing is just a conversion using the following script
dd if=xaa cbs=152 ... (0 Replies)
Discussion started by: rintingtong
0 Replies
3. Shell Programming and Scripting
I have a file say "codefile" here ,contains data like this
Hi! How are you?
I need to covert this data into stram of equivalant ASCII values
I wrote follwoing script.
#!/bin/bash
while read -n1 char
do
printf "%d" \'$char
done < codefile
this gives me output
... (4 Replies)
Discussion started by: sunilmenhdiratt
4 Replies
4. Shell Programming and Scripting
Hi,
Can anyone please help me ascci to decimal conversion in bash
I have a file which contains stream of numbers like this,these are ascci values
729711810132973278105991013268971213233
I want to covert it to its actual value like upper code's decimal is
"Have a Nice Day!"
... (15 Replies)
Discussion started by: sunilmenhdiratt
15 Replies
5. UNIX for Dummies Questions & Answers
when i try to convert a mainframe EBCDIC file to ASCII ,i dont see correct file this is the source file
... (3 Replies)
Discussion started by: venkatvelpula
3 Replies
6. Programming
Compiling xpp (The X Printing Panel) on SL6 (RHEL6 essentially):
xpp.cxx: In constructor ‘printFiles::printFiles(int, char**, int&)’:
xpp.cxx:200: error: invalid conversion from ‘const char*’ to ‘char*’
The same error with all c++ constructors - gcc 4.4.4.
If anyone can throw any light on... (8 Replies)
Discussion started by: GSO
8 Replies
7. Shell Programming and Scripting
I Am trying to change the file encoding from ASCII to UTF-8 using below command
iconv -f ASCII -t UTF-8 <input_file> > <output_file>
But the output_file is not actually in UTF-8 format. If I use the file command to check the file encoding it still says ASCII.
While converting am not... (5 Replies)
Discussion started by: Sriranga
5 Replies
8. Programming
Pointers are seeming to get the best of me and I get that error in my program.
Here is the code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define REPORTHEADING1 " Employee Pay Hours Gross Tax Net\n"
#define REPORTHEADING2 " Name ... (1 Reply)
Discussion started by: Plum
1 Replies
9. UNIX for Advanced & Expert Users
Hi,
I have a input file which is EBCIDIC and it has packed decimals.
Can anyone help me to convert EBCIDIC file to ASCII(Need to convert even Packed decimal values also to normal format).
Thanks
swapna (12 Replies)
Discussion started by: swapna_1990
12 Replies
10. UNIX for Advanced & Expert Users
Hi,
We have a mainframe file which is in EBCDIC format.We dont have direct access to mainframe ,client has provided us the mainframe file.The mainframe file is containing pact data(COMP1 ,COMP2 etc) which are unreadble.Can anyone suggest me how to convert this kind of ebcdic file to ascii... (11 Replies)
Discussion started by: swapna_1990
11 Replies
LEARN ABOUT REDHAT
sgml2txt
SGML2TXT(1) General Commands Manual SGML2TXT(1)
NAME
sgml2txt - create plain text output from a LinuxDoc DTD SGML source file
SYNOPSIS
sgml2txt [generic-option...] [--manpage] [--filter] [--blanks=n] file[.sgml]
DESCRIPTION
sgml2txt is an old and obsoleted form of the text converter command of LinuxDoc-Tools. It is recommended to switch the new form linuxdoc
-B text now. It converts a LinuxDoc DTD SGML source file to ASCII, ISO-8859-1, or EUC-JP output. Output will appear in file.txt where file
is the name of the SGML source file.
The attribute/value pair "output=txt" is set for conditionals.
OPTIONS
sgml2txt accepts all the generic options described in linuxdoc(1), and the following specific options:
--manpage, -m
Outputs a groff source file, suitable for formatting with groff -man for man pages
--filter, -f
Remove backspace-overstrikes from the intermediate form generated by groff(1).
--pass, -P
The argument of the pass option is added to the command-line options handed to groff(1).
--blanks=n, -b
Set the limit of continuous blank lines for generating the output document. The default limit is 3. if 0 (zero) is specified, the
result have many continuous blank lines.
file The SGML source file, named either file or file.sgml
FILES
Many files and executables in /usr/share/linuxdoc-tools are used.
BUGS
None known.
AUTHOR
Originally written by Greg Hankins <greg.hankins@cc.gatech.edu>, based on scripts by Tom Gordon and Alexander Horz, and later rewritten by
Cees de Groot <cg@cdegroot.com> for SGML-Tools (v1). Currently maintained by Taketoshi Sano <sano@debian.org> for Linuxdoc-Tools.
SEE ALSO
linuxdoc(1), sgml2html(1), sgml2info(1), sgml2latex(1), sgml2lyx(1), sgml2rtf(1), sgmlcheck(1).
16 May 2000 SGML2TXT(1)