[Linux-Biella] ricerca file con nome...
PaulTT
paultt a bilug.it
Mer 10 Maggio 2017 17:04:06 CEST
On 10/05/2017 16:51, Leonardo Buffa wrote:
>
>
> On 10/05/2017 16:45, PaulTT wrote:
>
>> ora si capisce, ciapa
>>
>>
>> grep -E \(.*\[.\].*\)\{2,\}
>
> scusa ma non ho capito come usarlo... se io faccio:
>
> find . |grep -E \(.*\[.\].*\)\{2,\}
>
> ottengo:
> ./c/pippo.a
> ./c/pippo.pluto.paperino.ugo
> ./b/pippo.a
> ./b/pippo.pluto.paperino.ugo
> ./a/pippo.a
> ./a/pippo.pluto.paperino.ugo
>
e' chiaro
se usi find, devi metter 3 e non 2, se no ti conta anche il primo punto
icecreaaaammmm :D:D:D:D
> se invece faccio:
>
> ls -lar |grep -E \(.*\[.\].*\)\{2,\}
>
> ottengo:
> drwxrwxrwt 16 root root 440 mag 10 16:47 ..
>
>
> quello che serve a me dovrebbe mostrarmi i file:
> ./c/pippo.pluto.paperino.ugo
> ./b/pippo.pluto.paperino.ugo
> ./a/pippo.pluto.paperino.ugo
>
> e non mostrarmi i file:
> ./c/pippo.a
> ./b/pippo.a
> ./a/pippo.a
>
>
--
It is a good day to die. But the day is not yet over.
Maggiori informazioni sulla lista
Linux