Hello,
I need help to check content of ftp log files. I forgot to say that I am on Solaris 9. I am using KSH.
I have 2 log files.
Here is an example of content :
LOG File from 21 October
-rw-rw-r-- 1 cvbntr xarf 94974 Nov 1 2009 TAG__SC___2006175_0.TAB
-rw-rw-r-- 1 cvbntr xarf 94974 Nov 1 2009 TAG__SC___2006175_0.HDR
-rw-rw-r-- 1 cvbntr xarf 3563 May 8 04:07 TAG__KSM__2012063_0.HDR
-rw-rw-r-- 1 cvbntr xarf 3585 May 8 04:07 TAG__KSO__2012063_0.HDR
-rw-rw-r-- 1 cvbntr xarf 95106 Aug 31 12:56 MAG__KSO__2012171_0.TAB
-rw-rw-r-- 1 cvbntr xarf 3647 Aug 31 12:56 MAG__KSO__2012171_0.HDR
-rw-rw-r-- 1 cvbntr xarf 83424 Oct 21 02:41 TAG__SC___2012230_0.TAB
-rw-rw-r-- 1 cvbntr xarf 3602 Oct 21 02:41 TAG__SC___2012230_0.HDR
LOG File from 22 October
-rw-rw-r-- 1 cvbntr xarf 95974 Nov 1 2009 TAG__SC___2006175_0.TAB
-rw-rw-r-- 1 cvbntr xarf 95974 Nov 1 2009 TAG__SC___2006175_0.HDR
-rw-rw-r-- 1 cvbntr xarf 3563 May 8 04:07 TAG__KSM__2012063_0.HDR
-rw-rw-r-- 1 cvbntr xarf 3585 May 8 04:07 TAG__KSO__2012063_0.HDR
-rw-rw-r-- 1 cvbntr xarf 95106 Aug 31 12:56 MAG__KSO__2012171_0.TAB
-rw-rw-r-- 1 cvbntr xarf 3647 Aug 31 12:56 MAG__KSO__2012171_0.HDR
-rw-rw-r-- 1 cvbntr xarf 83424 Oct 22 02:41 TAG__SC___2012230_0.TAB
-rw-rw-r-- 1 cvbntr xarf 3602 Oct 22 02:41 TAG__SC___2012230_0.HDR
What I need :
1 : Find the new files : Files that does not exist on the old ftp log file : print date size & filename
2 : Find the files with a grather size on the new log file ( compare to the old ftp log file ) : : print date size & filename
NOTE : I can't trust dates of files as some old files may be reprocess and get a new date, and some others not. ( I assume you imagine the mess )
Here is output needed as an example :
RESULT PART 1 : 0
RESULT PART 2 :
Nov 1 2009 95974 TAG__SC___2006175_0.TAB
Nov 1 2009 95974 TAG__SC___2006175_0.HDR
Thanks a lot for your help.