[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] atribuir variável ao resultado do find
From: |
Tiago Barcellos Peczenyj |
Subject: |
Re: [shell-script] atribuir variável ao resultado do find |
Date: |
Thu, 1 Feb 2007 13:36:56 -0200 |
acho q o que esta faltando é isto:
LIST=( $(find /var/lib/myphpmoney/ -name \*ereg) )
On 2/1/07, Herbert P Fortes Neto <address@hidden> wrote:
>
>
> Olá
>
> Fiz o seguinte para ter um arquivo com as
> diferenças entre arquivos:
>
> ---------------------------------------------------
> #!/bin/bash
>
> LIST=$(find /var/lib/myphpmoney/ -name \*ereg)
>
> for i in ${LIST[*]}
> do
> diff -u $i ${i//.ereg/} >> myphpmoney.diffs
> done
>
> exit 0
> ----------------------------------------------------
>
> Como seria em uma linha apenas, atribuindo o resultado
> para uma variável e poder fazer a substituição?
>
> find /var/lib/myphpmoney/ -name \*ereg | ???diff -u $i ${i//.ereg/} >>
> myphpmoney.diffs
>
> []
>
> --
> Herbert Parentes Fortes Neto (hpfn)
> Linux user number 416100
> 0x9834F79E -- http://pgp.mit.edu/
>
> [As partes desta mensagem que não continham texto foram removidas]
>
>
>
--
Tiago B Peczenyj
Linux User #405772
# cd /pub
# more beer
[As partes desta mensagem que não continham texto foram removidas]
- atribuir variável ao resultado do find, Herbert P Fortes Neto, 2007/02/01
- Re: [shell-script] atribuir variável ao resultado do find,
Tiago Barcellos Peczenyj <=
- Re: [shell-script] atribuir variável ao resultado do find, Herbert P Fortes Neto, 2007/02/01
- Message not available
- Fwd: [shell-script] atribuir variável ao resultado do find, Julio C. Neves, 2007/02/01
- Re: Fwd: [shell-script] atribuir variável ao resultado do find, Herbert P Fortes Neto, 2007/02/02
- Re: Fwd: [shell-script] atribuir variável ao resultado do find, Julio C. Neves, 2007/02/02
- Re: Fwd: [shell-script] atribuir variável ao resultado do find, Herbert P Fortes Neto, 2007/02/03
- Message not available
- Re: Fwd: [shell-script] atribuir variável ao resultado do find, Julio C. Neves, 2007/02/04
- Re: Fwd: [shell-script] atribuir variável ao resultado do find, Herbert P Fortes Neto, 2007/02/05