Sponsored Content
Operating Systems Linux Red Hat Unable to convert EBCDIC file to ASCII file Post 302796369 by fpmurphy on Friday 19th of April 2013 11:25:05 AM
Old 04-19-2013
Both iconv and dd are available on Redhat and can convert from EBCDIC to ASCII.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to convert English text file to ASCII File?

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?

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?

How to convert ebcdic file to ascii file? (1 Reply)
Discussion started by: superuser123
1 Replies

4. Shell Programming and Scripting

convert file to ascii

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

How to check if the file has EBCDIC or ascii characters

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. Programming

Ebcdic to ascii

Hi, I want to convert ebcdic values to ascii values. Are there anyany specific c++ libraries with g++ compiler, which can do it ? gcc version 4.1.2 20080704 (Red Hat 4.1.2-54) (19 Replies)
Discussion started by: tostay2003
19 Replies

7. Shell Programming and Scripting

Convert UTF-8 file to ASCII/ISO8859-1 OR replace characters

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

8. Shell Programming and Scripting

Convert Hex to Ascii in a Ascii file

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

9. UNIX for Beginners Questions & Answers

Convert EBCDIC(.DAT) FILE into ASCII FILE

Hi Team, I am having 100 EBCDIC files (i.e. DAT extension) and need to convert them into ASCII File by unix shell script. I tried with DD Command but its not providing output as expected. Sample Text: ------------------ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Expected Output:... (2 Replies)
Discussion started by: JSM
2 Replies

10. UNIX for Beginners Questions & Answers

Check if file is EBCDIC or ASCII format

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
iconv(1)						      General Commands Manual							  iconv(1)

NAME
iconv - Converts encoded characters to another codeset SYNOPSIS
iconv -f from_code -t to_code [file...] STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: iconv: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. OPTIONS
Specifies the input codeset. Specifies the output codeset. OPERANDS
Specifies one or more files that contain the data to be converted. If this operand is omitted, the standard input is used. DESCRIPTION
The iconv command converts the encoding of characters in file from one coded character set to another and writes the results to standard output. The input and output coded character sets are identified by from_code and to_code. If the file operand is not specified on the command line, the iconv command reads the standard input. The result of specifying invalid characters in the input stream is that the input value is translated to the substitute character. [Tru64 UNIX] Current industry standards do not specify the name format, implementation, and location of the codeset converters used by this command. On this operating system, the command searches directories of algorithmic and table converters to find one that performs the requested conversion. The names of codeset converters adhere to the following format: fromcode_tocode EXIT STATUS
Success. An error occurred. ERRORS
[Tru64 UNIX] You can view the diagnostic messages that may be returned by the iconv command by entering the following commands: cd /usr/lib/nls/msg/en_US.ISO8859-1 dspcat iconv.cat EXAMPLES
The following examples use the iconv command: To convert the contents of the eucJP_data file from the eucJP to the SJIS codeset and save the results in the sjis_data file, enter: iconv -f eucJP -t SJIS eucJP_data > sjis_data To convert the contents of the eucJP_data file from the eucJP codeset to the UCS-4 codeset and save the results in the UCS_4_data file, enter: iconv -f eucJP -t UCS-4 eucJP_data > UCS_4_data ENVIRONMENT VARIABLES
The following environment variables (see i18n_intro(5) and l10n_intro(5)) affect the execution of the iconv command: Specifies a default value for the locale category variables that are not set. If set to a nonempty string value, overrides the values of all other locale variables, including LANG. Determines the locale for interpreting byte sequences as characters in, for example, command parameters. Spec- ifies the locale used to find translations, if any, for the command's message catalogs. [Tru64 UNIX] Specifies the search path used to find locales and the subdirectories that contain codeset converters. The default is /usr/lib/nls/loc. Determines the location of message catalogs for the processing of LC_MESSAGES. FILES
[Tru64 UNIX] Algorithmic converters. [Tru64 UNIX] Table converters. SEE ALSO
Commands: genxlt(1) Functions: iconv(3), iconv_close(3), iconv_open(3) Others: i18n_intro(5), iconv_intro(5), l10n_intro(5), standards(5) Writing Software for the International Market iconv(1)
All times are GMT -4. The time now is 11:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy