On 7/27/07, Alex <[EMAIL PROTECTED]> wrote:
>
> Existe alguma maneira de através de um script, entrar dentro de um
> determinado arquivo de texto já existente e checar se uma ou
> mais strings estão contidas neste arquivo?
>
> Por exemplo, algo parecido com isso:



#!/bin/sh

if [ egrep 'string1|string2' /var/temp1.txt ]; then
  mail -s Arquivo [EMAIL PROTECTED] < temp.txt
else
  rm temp.txt
fi
-------------------------
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

Responder a