03-25-2008
11,
0
Join Date: Mar 2008
Last Activity: 29 April 2008, 12:11 PM EDT
Posts: 11
Thanks Given: 0
Thanked 0 Times in 0 Posts
diff file and previous version
Im trying to diff two files. The first one I will be given. The second one I must find based on previous version created.
For instance here are the files
file_1 - created 3/22/08
file_2 - created 3/23/08
file_3 - created 3/24/08
file_4 - created 3/25/08
then I put in this code
" find . -name 'file_*' -mtime -1 -print > most_recent_file "
this finds any file in the previous directory that contains file_* from 1 day ago and prints it to most_recent_file
now my question is, is there a way I can diff this file with the previous version file_3