Faltou os parenteses da função length, desculpe...
amazonas:~# cat teste | sed -e 's/ //g' | awk '{print length()}'
31
Em 24 de maio de 2010 16:16, Ronaldo Reis Junior <[email protected]> escreveu:
> Quase,
>
> [rona...@mobilix ~]$ cat trad.txt | sed -e 's/ //g' | awk 'print(length)'
> awk: print(length)
> awk: ^ syntax error
>
> Valeu
> Inte
> Ronaldo
>
> Em 24-05-2010 13:07, Allan Carvalho escreveu:
>>
>> cat arquivo.txt | sed -e 's/ //g' | awk 'print(length)'
>>
>
> --
> 8ª lei - Colete seus dados hoje como se você soubesse que seu equipamento
> vai quebrar amanhã.
>
> --Herman, I. P. 2007. Following the law. NATURE, Vol 445, p. 228.
>>
>> Prof. Ronaldo Reis Júnior
>
> | .''`. UNIMONTES/DBG/Lab. Ecologia Comportamental e Computacional
> | : :' : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia
> | `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil
> | `- Fone: (38) 3229-8192 | [email protected]
> | http://www.ppgcb.unimontes.br/lecc | LinuxUser#: 205366
>
>
> --
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact
> [email protected]
> Archive: http://lists.debian.org/[email protected]
>
>
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive:
http://lists.debian.org/[email protected]