Shell scripting

Hi All,

How to compare lines from file with files under one directory..
example

i have file called test,in that i have .dbf files

/u01/test/system.dbf
/u01/test/undo.dbf
.....
.....

and i have directory..
/SID/oradata/

under this directory i have .dbf file

system.dbf
undo.dbf
....
....

i need to compare both the things and if it missmatches ,
then i need to replace .dbf files under directory with that file .dbf file.

Please hlep me.

Thanks
Jack

i want to find the subfolders and sub sub folders sizes using shell script can any one help me regarding this