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

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

Re: [shell-script] Dúvida na Sentença do IF


From: miranda
Subject: Re: [shell-script] Dúvida na Sentença do IF
Date: Thu, 02 Aug 2012 17:12:51 -0300

Que tal assim ?

grep -q -e "accessed" -e "acessado" $ARQ_TEMP
rc=$?
if [ $rc -eq 0 ] 
then
  faz algo
fi

On Thu, 2012-08-02 at 13:08 -0300, Jefferson Aranha wrote:

> if [ `grep -e "accessed" -e "acessado" "$ARQ_TEMP"` ]; then
> faz algo
> fi


[As partes desta mensagem que não continham texto foram removidas]



reply via email to

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