Hi Techies
I have written a script which is collecting the logs of job running on server and let mail me the output.
I want to format column of output, please help.
CCMS_BAU_from_CACHE RUN
ETL_SUBSITE_TO_SITE_BAU RUN
GetClient_Prep_Main RUN
MDM_Client_BAU RUN
Sweeper RUN
Staging_To_Reporting RUNNING
Bridge_BAU RUN
CMT_CUSTOMER_BAU RUN
CMT_CLIENT_HIERARCHY_BAU RUN
SAP_CUST_NI_CCMS RUN
CLIENT_DUNS_CUST_NI_CCMS RUN
as you can see Job status is not in a Column, I need them in a column
Please help
$ ./s1
Environment: LC_ALL = , LANG = en_US
(Versions displayed with local utility "version")
aix 7.1.0.0
bash GNU bash 4.2.10
align 1.7.0
-----
Input data file data1:
CCMS_BAU_from_CACHE RUN
ETL_SUBSITE_TO_SITE_BAU RUN
GetClient_Prep_Main RUN
MDM_Client_BAU RUN
Sweeper RUN
Staging_To_Reporting RUNNING
Bridge_BAU RUN
CMT_CUSTOMER_BAU RUN
CMT_CLIENT_HIERARCHY_BAU RUN
SAP_CUST_NI_CCMS RUN
CLIENT_DUNS_CUST_NI_CCMS RUN
-----
Results:
CCMS_BAU_from_CACHE RUN
ETL_SUBSITE_TO_SITE_BAU RUN
GetClient_Prep_Main RUN
MDM_Client_BAU RUN
Sweeper RUN
Staging_To_Reporting RUNNING
Bridge_BAU RUN
CMT_CUSTOMER_BAU RUN
CMT_CLIENT_HIERARCHY_BAU RUN
SAP_CUST_NI_CCMS RUN
CLIENT_DUNS_CUST_NI_CCMS RUN
See comment in script for download location for align.