Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Converting binary file to text file Post 302965029 by dp0b on Friday 22nd of January 2016 11:10:59 AM
Old 01-22-2016
Converting binary file to text file

Hi,

Im wondering how I can convert a binary file to a text file?
I have ran the following command to output which type of binary file coding it is

Code:
od -t x1 -c eHat.data0 | head -20

and that gives me the following output;
Code:
0000000 5c 00 00 00 cd 06 f2 41 00 00 00 c6 00 00 00 c6 \ \0 \0 \0 315 006 362 A \0 \0 \0 306 \0 \0 \0 306
0000020 42 8f 95 c0 19 d5 5a c2 8e 99 1f c1 91 03 94 41 B 217 225 300 031 325 Z 302 216 231 037 301 221 003 224 A
0000040 f7 7e cd 40 c4 cc d2 be 00 00 00 c6 00 00 00 c6 367 ~ 315 @ 304 314 322 276 \0 \0 \0 306 \0 \0 \0 306
0000060 00 00 00 c6 6c d9 91 3e b6 9c 2c 3e 5b 98 63 3e \0 \0 \0 306 l 331 221 > 266 234 , > [ 230 c >
0000100 84 61 c1 3e 29 ec 6d 3e 10 9e 4d 44 00 00 00 c6 204 a 301 > ) 354 m > 020 236 M D \0 \0 \0 306
0000120 00 00 00 c6 e2 c3 79 44 c2 50 b6 43 bd ab 9a 40 \0 \0 \0 306 342 303 y D 302 P 266 C 275 253 232 @
0000140 5c 00 00 00 5c 00 00 00 00 00 00 c6 00 00 00 c6 \ \0 \0 \0 \ \0 \0 \0 \0 \0 \0 306 \0 \0 \0 306
0000160 00 00 00 c6 00 00 00 c6 00 00 00 c6 00 00 00 c6 \0 \0 \0 306 \0 \0 \0 306 \0 \0 \0 306 \0 \0 \0 306
*
0000300 00 00 00 c6 5c 00 00 00 5c 00 00 00 00 00 00 c6 \0 \0 \0 306 \ \0 \0 \0 \ \0 \0 \0 \0 \0 \0 306
0000320 00 00 00 c6 00 00 00 c6 83 08 a8 c2 82 d2 25 c3

Is there a way I can convert this to a text file?
Many thanks!

Moderator's Comments:
Mod Comment edit by bakunin: please use CODE-tags not only for code but also for terminal output and file contents. Thank you.

Last edited by bakunin; 01-22-2016 at 06:57 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Converting a text file to a csv file

I have a text file that is the output of a Netbackup report. The file it generates is just a plain text file with only white space between fields. For example: Date Policy Type Kilobytes Retention 12/5/2005 WinNT Full 18329948 6 Months I... (4 Replies)
Discussion started by: primowalker
4 Replies

2. UNIX for Dummies Questions & Answers

How to convert binary Unix file to text

Hi all, I have a print control file (dflt) for Oracle which is in binary. As I am going to develope an application in Window environment, I would like to reference the dflt file. But it is in binary format and I cannot access it. Anyone can suggest me how to convert the file into text or... (5 Replies)
Discussion started by: user12345
5 Replies

3. Shell Programming and Scripting

Converting a text file to HTML

Hi, I need to convert a text file formatted like this ("tshark -z conv,ip" output) to HTML: ===================================================================================================== IPv4 Conversations Filter:<No Filter> | <- ... (4 Replies)
Discussion started by: ph0enix
4 Replies

4. Shell Programming and Scripting

convert binary file into text file

im looking for anothr way to convert binary file into text file im using old solaris version (exatcly like xxd -r) thanks (2 Replies)
Discussion started by: modcan
2 Replies

5. UNIX for Dummies Questions & Answers

Converting binary file to readable format in Ksh

In Unix/Ksh, when I try to look inside a file it says that the file may be a binary file and if I want to see it anyway. When i say 'yes', it shows me the content filled with unreadable symbols (looks like binary). Is there a command that I can run from the Unix prompt to convert/translate that... (3 Replies)
Discussion started by: arthurs
3 Replies

6. Shell Programming and Scripting

Converting columns of a text file.

Not sure the most effient way to do this. I have figiured out how to extract columns with shell script, but not sure how to convert This is what I have... NEWDNS 04-Jun-2011 06:00:59.762 10.220.136.217 crl.verisign.com This is what I need.... Change date, remove mil seconds,... (1 Reply)
Discussion started by: mrlayance
1 Replies

7. UNIX for Dummies Questions & Answers

Converting a text file with irregular spacing into a space delimited text file?

I have a text file with irregular spacing between values which makes it really difficult to manipulate. Is there an easy way to convert it into a space delimited text file so that all the spaces, double spaces, triple spaces, tabs between numbers are converted into spaces. The file looks like this:... (5 Replies)
Discussion started by: evelibertine
5 Replies

8. UNIX for Dummies Questions & Answers

[AIX] Binary file warning for text file.

Hello guys, We had to move from a DC to another, and we are now facing an "issue" with some text files. Looks like that some of our log files are set as binary: file TuxConnectorURA.20121012 TuxConnectorURA.20121012: data or International Language text less TuxConnectorURA.20121012... (2 Replies)
Discussion started by: EnioMarques
2 Replies

9. Shell Programming and Scripting

Converting text file in a matrix

Hi All, I do have a file with many lines (rows) and it is space delimited. For example: I have a file named SR345_pl.txt. If I open it in an editor, it looks like this: adfr A2 0.9345 dtgr/2 A2 0.876 fgh/3 A2 023.76 fghe/4 A2 2345 bnhy/1 A3 3456 bhy A3 0.9876 phy A5 0.987 kdrt A5... (9 Replies)
Discussion started by: Lucky Ali
9 Replies

10. Shell Programming and Scripting

Converting a binary file to ascii and vice versa?

Hi All, I have a binary file which is being exported from a Database, and i need to convert that to ASCII format. How can i achieve that? And this solution should work for any file which is given to us; means they will give different files from different tables. Thanks in advance. (8 Replies)
Discussion started by: baranisachin
8 Replies
fs_wrapper(5)							File Formats Manual						     fs_wrapper(5)

NAME
fs_wrapper - configuration and binary files used by file system administration commands SYNOPSIS
FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... FStype] ... DESCRIPTION
The commands listed in the SYNOPSIS can operate on different types of file systems. Each command (except for reads file system specific configuration files that control the command's behavior, and invokes a file system specific binary file to do the actual work. FStype is the file system type as optionally specified on the command line. If FStype is not given, then the file system type is determined from by matching an entry in this file with a device provided with the command (see individual commands for details of usage). Administrators may also define a default file system type for the above commands via the file If this file exists, and contains the line: (e.g., then the above commands will assume the FStype given in unless an FStype is provided on the command line or is in The default file system specification is provided to maintain compatibility with pre-10.0 invocations of the commands. See the FILES section for a list of the files used. WARNINGS
The configuration files are supplied by HP or by other file system vendors. They are not meant to be edited by System Administrators. Corruption or removal of these files may lead to strange behavior, including the inability to boot. The format of the configuration file is subject to change. The file system specific binary files are not normally executed directly. However, if the configuration files become unusable, direct exe- cution of these binary files may be a useful step in repairing and running the system again. The binary files accept the same arguments as the commands by which they are executed. The command is a special case. This command currently does not read a configuration file, and does not execute a file system specific binary file if FStype is or The binary that handles these FStypes also processes other FStypes and calls the file system specific command if appropriate. For historical reasons, the binary files also handle and so there are no separate binary files for the latter two file systems. The commands (except will not work if they are renamed, because they are symbolically linked to a single executable FILES
FStype is the file system type as optionally specified on the command line. command is the name of the command. File system specific binary files for the and commands. There may be additional file system specific binary files in this directory that are not associated with File system specific binary files for the remaining commands. There may also be other file system specific binary files in this directory that are not associated with Configuration files for each file system type. File in which the default file system type can be defined. If this file does not exist, there is no default file system type. Static information about the file systems SEE ALSO
ff(1M), fsck(1M), fsdb(1M), mkfs(1M), mount(1M), ncheck(1M), newfs(1M), quot(1M), quotacheck(1M), volcopy(1M), fstab(4). fs_wrapper(5)
All times are GMT -4. The time now is 09:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy