Subject: Re: Formatting the result... ¿? From: Norman Gray <norman@xxxxxxxxxxxxxxx> Date: Fri, 1 Oct 1999 15:43:00 +0100 (BST) |
Greetings, Reyes Garcia Rosado <reyes.garcia@xxxxxxxxxx> wrote: > There is a way to take this with the next format? > <FATHER> > <SON-A> > ... This very morning... % sed '/<[a-zA-Z0-9-]\+$/{:a;N;s/\n>/ >/;t z;s/\n/ /;b a;:z;s/\(<[a-zA-Z0-9-]\+\)$/\1/;t a;}' input-file That doesn't do everything (it runs successive elements on to a single line to avoid introducing spurious whitespace), but it does get the attributes on to the same line as the element type, if that's the parsing problem you're having. All the best, Norman --------------------------------------------------------------------------- Norman Gray http://www.astro.gla.ac.uk/users/norman/ Physics and Astronomy, University of Glasgow, UK norman@xxxxxxxxxxxxxxx DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Formatting the result... ¿?, Reyes Garcia Rosado | Thread | Re: Formatting the result... ¿?, Reyes Garcia Rosado |
Formatting the result... ¿?, Reyes Garcia Rosado | Date | DOM an xsl, pietro abate |
Month |