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!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!c03.atl99!news.usenetserver.com!news02.tsnz.net!newsfeed01.tsnz.net!ken-transit.news.telstra.net!lon-in.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mail From: TyBreaker User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: A little UNIX scripting challenge... References: <60fdd9c9.0405270723.33f51cc3@posting.google.com> <60fdd9c9.0405280812.730ddb8c@posting.google.com> <60fdd9c9.0406020140.30766c49@posting.google.com> In-Reply-To: <60fdd9c9.0406020140.30766c49@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Wed, 02 Jun 2004 23:44:41 GMT NNTP-Posting-Host: 144.138.159.94 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1086219881 144.138.159.94 (Thu, 03 Jun 2004 09:44:41 EST) NNTP-Posting-Date: Thu, 03 Jun 2004 09:44:41 EST Organization: BigPond Internet Services Xref: g2news1.google.com comp.unix.tru64:89 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.