Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: data transformation

Re: data transformation

From: s. keeling <keeling_at_spots.ab.ca>
Date: Thu, 15 Feb 2007 03:07:30 GMT
Message-ID: <slrnet7jji.6s9.keeling@heretic.spots.ab.ca>


["Followup-To:" header set to alt.os.linux.] Steven Mocking <ufo_at_quicknet.youmightwanttogetridofthis.nl>:
> m.t wrote:
> > I have log file with data like this:
>
> *snip random gibberish*
>
> > Is there a way (Windows or Unix) to transform it to single column ?
>
> a="\\545\\543\\550\\557\\040\\522\\565\\556\\556\\551\\556\\547\\040\\543"
> a="$a\\557\\544\\545\\040\\571\\557\\565\\040\\544\\557\\040\\556\\557\\564"
> a="$a\\040\\565\\556\\544\\545\\562\\563\\564\\541\\556\\544\\040\\551\\563"
> a="$a\\040\\566\\545\\562\\571\\040\\563\\551\\554\\554\\571\\040\\551\\556"
> a="$a\\544\\545\\545\\544\\013\\015"
> eval `echo -en $a | sed 's/\\\\/\\\\\\\\/'`

I nominate this for the worst, and least readable and maintainable, solution.

-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)    http://www.spots.ab.ca/~keeling          Linux Counter #80292
- -    http://www.faqs.org/rfcs/rfc1855.html    Please, don't Cc: me.
       Spammers! http://www.spots.ab.ca/~keeling/emails.html
Received on Wed Feb 14 2007 - 21:07:30 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US