Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: data transformation
["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.htmlReceived on Wed Feb 14 2007 - 21:07:30 CST
![]() |
![]() |