11-07-2006
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 human readable language.
Rgds
10 More Discussions You Might Find Interesting
1. Programming
i hav tried to convert binary 2D data into text using binreader and writing into text file using streamwriter.
i use ReadSingle() function to convert from binary to ascii, although it works good in 1D data but not in more dimensions.
the kind of values i get are
-1.265369923E+038
and like
... (2 Replies)
Discussion started by: geet
2 Replies
2. Shell Programming and Scripting
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
3. AIX
Hi
I need to display the binary text of an clearn text which is sent as input to the shell script (c shell);
ex: I will pass "HELLO" as input, and i should get the binary format of the text
Thanks in advance
Mohan (1 Reply)
Discussion started by: mKarri
1 Replies
4. Shell Programming and Scripting
The 6th & 7th column of the text files represents date & time. I need this to be converted in julian format using command "date +%s -d <date>". I know the command, but dont know how to use it on the script
0 dbclstr-b IXT_Web Memphis_Prod_SQL_Full Memphis-Prod-SQL-Full-Application-Backup... (4 Replies)
Discussion started by: ajiwww
4 Replies
5. Shell Programming and Scripting
Hello everyone,
I have a binary file with a structure unknown. I have found 2 perl scripts that it seems to do the convertion but I get sintactic errors when I run them, may somebody test these 2 scripts please and see if really work?
One if from here... (10 Replies)
Discussion started by: Ophiuchus
10 Replies
6. Shell Programming and Scripting
Hello *nix specialists,
Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my... (7 Replies)
Discussion started by: digidax
7 Replies
7. Windows & DOS: Issues & Discussions
Hmmm I think I found the correct subforum to ask my question...
I have some text files that I prepared in vi some time ago, and now I want to open and edit them with Windows Notepad. I don't have a Unix terminal at the moment so I need to do the conversion in Windows. Is there a way to do this?... (1 Reply)
Discussion started by: frys_hp
1 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
I have some text files that I prepared in vi some time ago, and now I want to open and edit them with Windows Notepad. I don't have a Unix terminal at the moment so I need to do the conversion in Windows. Is there a way to do this? Or just reinsert thousands of line breaks again :eek: ? (2 Replies)
Discussion started by: frys_hp
2 Replies
9. Shell Programming and Scripting
Dear Users , Need to convert delimited text files in UNix server to an Excel file and move the excel file to Windows environment. Am trying to automate the whole process. Can anyone share the ideas,if they have done similar ones before...Thanks -Meera (1 Reply)
Discussion started by: meerakrish
1 Replies
10. Shell Programming and Scripting
I have input data looks like this which is a part of a csv file
7,1265,76548,"0102:04"
8,1266,76545,"0112:04"
I need to make the output data should look like this and the output data will be part of text file:
7|1265000 |7654899 |A|
8|12660000 |76545999 |B|
The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies
LEARN ABOUT DEBIAN
pydhcp
pydhcp(8) PYDHCPLIB pydhcp(8)
NAME
pydhcp - a dhcp command line tool
USAGE
pydhcp --input <TYPE;OPTIONS;NAME> --output <TYPE;OPTIONS;NAME>
DESCRIPTION
pydhcp is a command line tool to read or write dhcp packet on network, and translate from raw data to human readable informations (and
vice-et-versa). pydhcp is a part of the pydhcplib python library.
Input and Output field description
pydhcp takes an input and an output argument. Input and output are described in the same way. For example :
pydhcp --input 'device;binary|up;eth0:68' --output 'file;readable;myfile.txt' -c 1
<TYPE> field
There is 5 types for the <TYPE> field. Only one type at once can be used : device, address, file, stdin and stdout. device tells pydhcp to
write or listen directly on the network interface and port. address is to write or listen on a specific Internet Address and port (like
192.168.1.1:67 ). file read or write data from or to a file. stdin read data from stdin, stdout write data on stdout.
<OPTIONS> field
You can use multiple options in the option field by separate them with a pipe |. There is 4 options for this field : readable, binary, up
and noup. readable id to read or write data in a human readable language : a packet definition language. This language is described later.
Binary form stand for reading or writing packets in the same binary form they are on the network : an UDP packet. readable and binary are
mutually exclusive. Option up tells pydhcp to set the network interface up if not. noup tells not to set up the interface. up and noup are
only useful in combination with the device type. Default is noup.
<NAME> field
Describe the name of the device (eth0:67,wlan0:client) , the address (192.168.1.1), or the filename (foo.txt). You can use a port number or
the keywords client and server for standard dhcp port.
Other command line options of pydhcp
Option -c : Number of packet to read or write. 0 for unlimited number of packet. Default is 0.
Known limitations
- Only one dhcp packet per file, then count is set to 1 for file I/O - No readable transfert on network (address or device). Binary only.
-c|--count
Number of packets to process.
EXAMPLES
Read a client packet on any address and write it on a human readable file :
pydhcp -i "address;binary;0.0.0.0:67" -o "file;readable;myfile.bin"
Read a binary dhcp packet from a file and print it on stdout in a human readable form :
pydhcp -i "file;binary;myfile.bin" -o "stdout;readable;"
SEE ALSO
pydhcplib
BUGS
Many...
AUTHOR
Mathieu Ignacio (mignacio[AT]april.org)
pydhcp(8)