Print column A only if any of B, C, D, E & G contains Failed using Linux shell

Posted by user3626342 on Stack Overflow See other posts from Stack Overflow or by user3626342
Published on 2014-08-19T21:59:25Z Indexed on 2014/08/19 22:20 UTC
Read the original article Hit count: 135

Filed under:
|
A               B                       C                  ............ till G

sucnpde067.advancemags.com-          Successful Full FS_UNIX_801_Fri_C Full_Backup 0B      Failed Full FS_UNIX_801_Fri_B Full_Backup 0B          ............ till G
sucnpde066.advancemags.com-          Successful Full FS_UNIX_801_Fri_C Full_Backup 0B      Successful Full FS_UNIX_801_Fri_C Full_Backup 0B  ............ till G
slnssde052.advancemags.com-           Failed Full FS_UNIX_801_Fri_B Full_Backup 0B              Successful Full FS_UNIX_801_Fri_C Full_Backup 0B   ........... till G
slnssde048.advancemags.com-           Failed Full FS_UNIX_801_Fri_B Full_Backup 0B              Failed Full FS_UNIX_801_Fri_B Full_Backup 0B          ............ till G

Print column A only if any of B, C, D, E & G contains Failed using Linux shell

Note -Coulmns are tab/comma seperated

© Stack Overflow or respective owner

Related posts about linux

Related posts about shell