![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Report generation | gmahesh2k | Shell Programming and Scripting | 3 | 05-16-2008 02:33 AM |
| awk- report generation from input file | McLan | Shell Programming and Scripting | 6 | 03-17-2008 05:34 AM |
| 2nd Generation SOA = EDA + CEP? | iBot | Complex Event Processing RSS News | 0 | 11-28-2007 08:30 PM |
| Shellcode Generation using C | Legend986 | High Level Programming | 2 | 10-08-2007 01:25 AM |
| Oracle Report generation | DILEEP410 | Shell Programming and Scripting | 7 | 01-04-2007 04:52 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
|
||||
|
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 |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|