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

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

Re: [shell-script] Uso do ponto


From: Gentil de Bortoli Júnior
Subject: Re: [shell-script] Uso do ponto
Date: Mon, 6 Feb 2006 10:02:18 -0200

On 2/6/06, Eriberto <address@hidden> wrote:
> # ls
> apto teste
>
> # ls | grep a.to
> apto
>
> # ls |grep a..to
>
> Até aqui tudo bem. O ponto substitui um caractere qualquer. Mas:
>
> # ls apto......
> apto
>
> Por que deu "apto" ao invés de nada?

Olá, Eriberto. Boa questão. Qual é o seu ambiente? Olha o que deu aqui:

$ bash --version
GNU bash, version 3.1.0(1)-release (i486-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.

$ ls
apto  teste

$ ls | grep a.to
apto

$ ls | grep a..to
$

$ ls apto......
ls: apto......: No such file or directory

--
Gentil de Bortoli Júnior
Chave GPG: http://gentil.bortoli.com.br/gpg

"There Is No Gene For The Human Spirit"


reply via email to

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