shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Remover resto da linha


From: Tiago Barcellos Peczenyj
Subject: Re: [shell-script] Remover resto da linha
Date: Wed, 22 Aug 2007 14:50:27 -0300

basta uma expressão regular ;-)

dpkg --search pt_BR.dic pt_BR.aff | cut -f2 -d " " | sed 's|/[^/]\+$|/|'

On 8/22/07, Salviano A. Leão <address@hidden> wrote:
>
> Olá a todos,
>
>  Estou com seguinte problema.  O comando abaixo
>  $ dpkg --search pt_BR.dic pt_BR.aff | cut -f2 -d " "
>  fornece o seguite resultado
>  /usr/share/myspell/dicts/pt_BR.dic
>  /usr/share/apps/koffice/hyphdicts/hyph_pt_BR.dic
>  ...
>  Gostaria de eliminar tudo que está apos a última /
>  ficando assim:
>  /usr/share/myspell/dicts/
>  /usr/share/apps/koffice/hyphdicts/
>  ...
-- 
Tiago B Peczenyj
Linux User #405772

http://peczenyj.blogspot.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]