![]() |
|
|
|
|
|||||||
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Report generation | gmahesh2k | Shell Programming and Scripting | 3 | 05-15-2008 11:33 PM |
| awk- report generation from input file | McLan | Shell Programming and Scripting | 6 | 03-17-2008 01:34 AM |
| 2nd Generation SOA = EDA + CEP? | iBot | Complex Event Processing RSS News | 0 | 11-28-2007 04:30 PM |
| Shellcode Generation using C | Legend986 | High Level Programming | 2 | 10-07-2007 10:25 PM |
| Oracle Report generation | DILEEP410 | Shell Programming and Scripting | 7 | 01-04-2007 12:52 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
report generation
Hello,
I got a requirement in writing a sheel script in unix, please help me out the requirement is there are two folders Folder1 and Folder2 and there are same files in the different folders. like file1,file2 in folder1 and file1 and file2 in folder2. I would like to compare all the similar files in the two folders and generate a report where this report should have filename and Matched(Y/N) If the files are similar then Y else N. Thanks in advance Mahesh |
| Forum Sponsor | ||
|
|
|
|||
|
Hi...
Few doubts.. Quote:
Quote:
Quote:
|
|
|||
|
Hi try this,
If ur in folder1, then echo " Filename Matched(Y/N) " >> Output_file for i in `ls` do diff $i path_0f_folder2/. if [ $? -eq 0 ] then echo " $i Y" >> Output_file else echo " $i N" >> Output_file fi done Thanks Penchal |
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|