I have following requirement. Pls suggest.
To search a string in a file which is combination of character and number(always 9 digit, but numeric). if found then caputure the exit return code as 0 else 1 , if 0 then next job can be triggerd. If exit code is 1, should return a failure notice.
character never changes. Number (9 digits) changes time to time.
e.g string "The maxinum number genrated : 123456789"
My requirement is to delete all file names which are having .CON extension from a particular directory.Please help with a script in how to do that?..Please help..
Thank you so much. When i tried before eventhough file exist in the path where i execute script it is not executed. The issue is with file path. i forced to read the file in specfic path. now it works!!! Thanks again.