From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,605aabdb8f59aaec X-Google-Attributes: gidfa528,public Path: g2news1.google.com!postnews1.google.com!not-for-mail From: nikki_wire@yahoo.com (nikki_wire) Newsgroups: comp.unix.tru64 Subject: Re: A little UNIX scripting challenge... Date: 4 Jun 2004 01:53:14 -0700 Organization: http://groups.google.com Message-ID: <60fdd9c9.0406040053.5303f76e@posting.google.com> References: <60fdd9c9.0405270723.33f51cc3@posting.google.com> <60fdd9c9.0405280812.730ddb8c@posting.google.com> <60fdd9c9.0406020140.30766c49@posting.google.com> NNTP-Posting-Host: 194.129.182.180 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1086339194 7779 127.0.0.1 (4 Jun 2004 08:53:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 4 Jun 2004 08:53:14 +0000 (UTC) Xref: g2news1.google.com comp.unix.tru64:92 Thanks for this - I'll have a crack in the next couple of days - I'll be honest, I don't understand what you coded very well at all but I guess this is a chance to learn! If you do get a chance to post your own version that would be brill but don't worry if not. Cheers Nikki TyBreaker wrote in message news:... > nikki_wire wrote: > > Well, if you know how to write an undewear detector, I'd be intrigued > > to know...! Actually what this is for is to decode some data from one > > of my company's applications - at the moment it's a prolonged manual > > process. > > Well it's easy to remove the spaces to get you one long string of 1's > and 0's. Just remove the space immediately following the %.8d in my > final awk command. Then reverse the string using awk again in a similar > way to how I reversed the original hex list - the catch is use '' (null) > as the delimiter so that it separates each digits in the string. Are > you comfortable with doing this yourself? I'm at home sick today so I > don't have a Unix box to play with.