#!/bin/ksh rcp bernat@161.116.5.13:PLUVINET.OUT pluja.dat >>errors.log awk '/DADES/,/mail/' pluja.dat|awk '$0 !~/joaquim/'|uniq