05-23-2017
Moderator's Comments:
|
|
Posting "Does not work" without explanation does not help you or anyone. If a command does not work for you, please show the exact circumstances you used it, and the exact error or malfunction you received. Do not paraphrase errors, or post the text as links, images, or attachments if you can avoid it: Paste the exact message, in code tags, like [code] text [/code] or by selecting the text and using the button.
Thank you.
The UNIX and Linux Forums
|
|
We also need to know more about the data files. When people say "EBCDIC" they often mean "packed decimal" which is a completely different problem.
Long story short, if you can't post a representative sample of the data - preferably fed through
hexdump -C < file.dat first - we can't help you.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
file abc
abc: English text
I want to convert the above into
file abc
file: ascii text (1 Reply)
Discussion started by: laknar
1 Replies
2. Shell Programming and Scripting
How to convert ebcdic file to ascii file? (1 Reply)
Discussion started by: superuser123
1 Replies
3. UNIX for Dummies Questions & Answers
How to convert ebcdic file to ascii file? (1 Reply)
Discussion started by: superuser123
1 Replies
4. Shell Programming and Scripting
I have a file in below format(ISO ) and to be convert to readable (.txt/Ascii) format .send me the commands/code please
sample as follows
2043010101167157001190002010011120000000002144300000000000000000000 01022_ - %rE@
U...ug 47 56 d %rE@ 01022_ - $5
fy ... (1 Reply)
Discussion started by: nalakaatslt
1 Replies
5. Shell Programming and Scripting
Hi,
is there a way to check if the initial few characters are ebcdic or ascii in a file? (1 Reply)
Discussion started by: ahmedwaseem2000
1 Replies
6. Shell Programming and Scripting
tar -tvf abc.tar.gz gives me the file name abc.Is it possible to rename the file to abc.dat while decompressing using tar ? Thanks. (2 Replies)
Discussion started by: vedanta
2 Replies
7. Red Hat
Hello all,
To give you all a little bit of background. We recently migrated from HP-UX to Redhat Linux and one of the command I used to run on HP-UX to convert an EBCDIC file to ASCII file isn't working on Linux. The code is as follow:
cat workout2.dat | dd cbs=250 conv=block conv=ascii... (3 Replies)
Discussion started by: sethmj
3 Replies
8. Shell Programming and Scripting
I am trying to develop a script which will work on a source UTF-8 file and perform one or more of the following
It will accept the target encoding as an argument e.g. US-ASCII or ISO-8859-1, etc
1. It should replace all occurrences of characters outside target character set by " " (space) or... (3 Replies)
Discussion started by: hemkiran.s
3 Replies
9. Shell Programming and Scripting
Hi All,
I have an ascii file in which few columns are having hex values which i need to convert into ascii. Kindly suggest me what command can be used in unix shell scripting?
Thanks in Advance (2 Replies)
Discussion started by: HemaV
2 Replies
10. UNIX for Beginners Questions & Answers
So, i have this requirement where i need to check the file format, whether it's EBCDIC or ASCII, and based on format retrieve the information from that file:
my file is:
file1.txt-->this ebcdic file
file2.txt-->ascii file
i tried below code:
file=file1.txt
type="`file $file`"
i get... (7 Replies)
Discussion started by: gnnsprapa
7 Replies
LEARN ABOUT DEBIAN
convickt
CONVICKT(1) General Commands Manual CONVICKT(1)
NAME
convickt - convert INTERCAL files between formats
SYNOPSIS
convickt incharset outcharset [paddingrule [arrayname]]
DESCRIPTION
This manual page describes the convickt command. Fuller documentation is available via the command info convickt
convickt converts INTERCAL programs from one character set to another; it takes input from standard input and sends its output to standard
output.
OPTIONS
For incharset and outcharset
atari Interpret the input as being ASCII-7 Atari syntax INTERCAL, as is used by the Atari INTERCAL-72 compiler, J-INTERCAL, and C-INTERCAL
default syntax, or output in that syntax.
baudot Interpret the input as being in CLC-INTERCAL's extended Baudot syntax, or output in that syntax.
ebcdic Interpret the input as being in the CLC-INTERCAL dialect of EBCDIC, or output in that syntax.
latin1 Interpret the input as being Latin-1 Princeton syntax INTERCAL, as is used by default by CLC-INTERCAL and also readable by C-INTER-
CAL with the -X switch, or output in that syntax.
For paddingrule
zero Pad the irrelevant bits in ASCII-7 and Baudot output with zeros.
printable
Set the values of the irrelevant bits in ASCII-7 and Baudot output to try to cause the output to stay within character range 32-126.
This option is the default. (Note that paddingrule is irrelevant for 8-bit character sets like Latin-1 and EBCDIC).
random Pad the irrelevant bits in ASCII-7 and Baudot output with random data, except that outputing an all-bits-zero octet is avoided.
CAVEATS
Not all conversions are possible, due to the character sets having different characters available. In most cases, an unconvertible or
invalid character will be converted to a 0 (padded appropriately); the exception is that if a tab cannot be converted, it will instead be
converted to a single space (so that INTERCAL programs still run if converted to Baudot). Using atari as an input or output character set
will literally convert characters which differ between Atari and Princeton syntax without checking to see whether they are being used as
operators or not.
If arrayname is given, then instead of outputting the converted text literally, it will be output as portable (that is, legal in INTER-
CAL-72, C-INTERCAL, J-INTERCAL and CLC-INTERCAL) INTERCAL that dimensions the tail array given as arrayname and assigns each byte of the
output to an element of that array; this is mostly useful for producing Baudot text for CLC-INTERCAL-style array IO.
AUTHOR
convickt and this manual page were written by Alex Smith.
CONVICKT(1)