we r using korn shell.. the req is 2 informatica jobs create 4 files with tstamp( each infa job creates 2 files) so lets say file names 1.ttmm_rels_prspt.ctl_tstamp 2.ttmm_rels_prspt.lsf_tstamp 3. ttmm_rels_rfc.ctl_tstamp 4. ttmm_rels_rfc.scf_tstamp.. so files create in the following path opt/etl/tgtfiles . ttmm_rels is the common prefix for 4 files.. if 4 files created on the server we hav to send an email sayin success with files names. and files should rename to procesd_filename. so the next day we wont get same files on the server since we renamed to processed. if 1 infa job fails there wil b only 2 files on the server. so send an success email with 2 file names and rename to processd for those 2 files also for other 2 files send delay email(if one infa job fails total 2 emails we send) on re-run of infa job again we have to send success email and rename the file names to processd_filename
linux searching multiple files with same prefix and sending only file names in an email
linux