The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-06-2009
lichento lichento is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 1
how many times does this repeated sequence exist

need a script to determine daily how many times does the below repeated sequence exist in a log file, and if it shows failure to connect in the same file
200 PORT Command successful.
150 Opening BINARY mode data connection for rgr016.daily.0305.
226 Transfer complete.
local: rgr016.daily.0306 remote: rgr016.daily.0306

also grep for "Not connected"

(trying to confirm consistent daily number of expected transfers, & will want to use this total against list of expected outputted files on another /dir

Thanks!

log has been set to only keep one day's worth of transfers and will no longer append