The Limber Lambda

Eric Smith’s technical musings

Binary or not?

leave a comment »

Recently after listening to an episode of Hanselminutes it occurred to me that a measure of whether or not you’re a Unix geek is how often you see this kind of thing:

In short, if you don’t see it at all or have never noticed strange characters at the start of your text file, you’re likely to reply “to hear the sea?” to the question “what’s your favourite shell?”.  In that case, do yourself a favour, go under the bonnet a little and learn about byte order marks (it’s all about enrichment).

Further, if it interests you enough, you may find yourself checking out the hex equivalent of your text file–how you go about that is very telling.  Hanselman belied his roots by doing this:

debug Foo.txt (and then enter ‘d’)

On the other hand, having a rather more unixy background, I would do the following:

xxd Foo.txt

To be honest, debug wouldn’t have occurred to me – if I had not had cygwin installed, I would probably have ended up downloading a (free/share-ware) editor that provides such a feature.

Advertisement

Written by Eric Smith

August 10, 2008 at 6:50 PM

Posted in Administration

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.