I have a file which gives me the following output :-
srvrmgr> list comps SHOW SV_NAME,CP_DISP_RUN_STATE,CP_STARTMODE,CP_NUM_RUN_TASKS,CP_MAX_TASKS,CP_ACTV_MTS_PROCS,CP_MAX_MTS_PROCS,CP_START_TIME,CP_END_TIME,CC_ALIAS
SV_NAME CP_DISP_RUN_STATE CP_STARTMODE CP_NUM_RUN_TASKS CP_MAX_TASKS CP_ACTV_MTS_PROCS CP_MAX_MTS_PROCS CP_START_TIME CP_END_TIME CC_ALIAS -------- ------------------- ------------ ---------------- ------------ ----------------- ---------------- ------------------- ------------------- --------------- --------- lnx001 Online Auto 0 50 1 1 2022-07-18 03:53:03 comp_123 comp_123 lnx003 Online Auto 0 50 1 1 2022-07-18 03:53:03 comp_456 comp_123 lnx005 Online Auto 0 20 1 1 2022-07-18 03:53:03 comp_123 comp_123 lnx007 Online Manual 0 50 0 1 2022-07-18 03:53:03 comp_987 lnx010 Online Manual 0 500 0 5 2022-07-18 03:53:03 comp_564 lnx011 Online Auto 643 4000 40 40 2022-07-18 03:53:03 comp_123
I only want to extract the 1st,4th(numeric) and where comp_name=comp_123, discarding all the other entries and show 1st field as host, 4th field as runningtasks and final field as component.. Please help me with the filters
... View more