Hello All,
I am trying to find 2 file comparision by using Shell Script. For example, I am having 2 directories namely DAY1 & DAY2. DAY1 directory contains file1.dat, file2.dat, file3.dat, file4.dat, file5.dat & DAY2 directory contains file1.dat, file2.dat, file3.dat, file4.dat, file5.dat. Now, want to compare DAY2/file1.dat with DAY1/file1.dat and store the result in tmp file, .... DAY2/file5.dat with DAY1/file5.dat and store the result in tmp file like. I.e., DAY2/file1.dat first row checkes with each rows in DAY1/file1.dat and so on. How to do in Shell Script. File row length is dynamic and this shell script is to run interactively by using batch jobs in UNIX. Does anybody use this requirement in your project or suggest me how to do this approach. In fact, I am new to UNIX shell scripting.
Regreat your suggestions/help.
Regards
Venkat.