Hi All,
Script to meet my requirement might be simpler for UINIX experts..
I need to generate an summary report in .txt file using shell script
I have Reject directory in Unix server which contains all reject files for three diff categories- Presentation, Chapter and Scene
Following are the reject files
Reject_Lookup_Error_Presentation.csv
Reject_Lookup_Error_Chapter.csv
Reject_Lookup_Error_Scene.csv
Reject_Read_Error_Presentation.csv
Reject_Read_Error_Chapter.csv
Reject_Read_Error_Scene.csv
_____________________________________________________
Summary report Should be generated by identifying the file name and size. If any of the file size related to Presentation (*_Presentation.csv) is > 0 then. The summary report should display - "Presentation file has error in loading"
If all files related to presentation are 0 size then it should display "Presentation file loaded successfully"
Now my Summary report should look like below
_______________________________________
Presentation file has loaded successfully
Chapter file has error in loading
Scene file has error in loading
_____________________________________
Kindly help me with the code. I need it urgently.