Re: Jugando con awk (parseo)

"Jonathan Brenes F." <[email protected]>
Newsgroups gmane.org.user-groups.linux.gulcr
Message-ID <[email protected]>
Es algo asi:
awk -F, '{for (i=1;i<=NF;i++){print $i}}' archivo.txt



On 11/15/06, ricardo gamboa <[email protected]> wrote:
>
>
> Hola gente!,
>
> Queria ver si alguien me podilla dar un empujon,con
> awk :)  (es para un trabajo de la Universidad)
>
> Este el archivo plano
>
> ~ric:~)cat palabras
>      => changeling
>      => child prodigy, infant prodigy, wonder child
>      => foster-child, foster child, fosterling
>      => imp, scamp, monkey, rascal, rapscallion
>      => kiddy
>      => orphan
>      => peanut
>      => pickaninny, piccaninny, picaninny
>      => poster child
>      => preschooler, kindergartner, kindergartener
>      => silly
>
> Ocupo que:
> Despliegue palabra en una sola linea
>
> Osea algo como:
> ~ric:~) awk 'expresioin poderosa' palabra
>       changeling
>       child prodigy
>       infant prodigy
>       wonder child
>       foster-child
>       foster child
>       fosterling
>       etc...
>
> Lo que no quiero es hacer un script,que habra el
> archivo y valla linea por linea preguntando y viendo
> si es ", " y aumente en 1,sino ojala todo en una sola
> linea.
>
>
> Cualquier pista,muchas gracias! :)
>
> Saludos,
>   -ric
>
>
>
>
> ____________________________________________________________________________________
> The all-new Yahoo! Mail beta
> Fire up a more powerful email and get things done faster.
> http://new.mail.yahoo.com
>
>
> --
> Desuscripción: escriba a [email protected], tema
> 'unsubscribe'
> Problemas a: [email protected].
> http://gulcr.org/ListasDeCorreo
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.