GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Proof that linux people are so nice, and ROCK! Here's the reply I recieved TODAY from David (thanks for the very prompt reply!):
Quote:
Hi Chad,
I converted the text-only version to hex using hexdump(1), and then used
sed(1) to replace the characters...
9 = 00001001
a = 00001010
b = 00001011
etc...
Although I have no plans to update it each time the main document is updated
in the future ;-) Ironically, we're so far removed from the early days of
computing that there's no direct ascii to binary translation program (at
least, not one that can process large documents that I'm aware of).
So, yes it's real, but no, it's not practical. It just seemed fitting, as
so many of these howto docs use 8 million different formats to present
themselves in, which I find to be just silly. So in a sense, it's more of a
statement of irony than anything ;-)
Cheers,
- David
----- Original Message -----
From: "Chad" <masterc@masterc.no-ip.org>
To: <david@lechnyr.com>
Sent: Sunday, January 19, 2003 10:46 AM
Subject: Question on file conversion
Somebody in the programming forum was doing this in java, although he was working on Strings, not Files. He takes each char and converts it's ascii value into binary. There's a big difference though. In java, a char is 2 bytes, while in most other languages its only 1 byte. It is strange how there isn't more support for binary while almost every programming language includes operators for bit manipulation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.