Visit The New, Modern Unix Linux Community


Remove extra spaces in a line


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Remove extra spaces in a line
# 1  
Question Remove extra spaces in a line

Hi,

I need a help in deleting extra spaces in a text.

I have a huge file, a part of it is :-

Code:
    3 09/21/08 03:32:07 started  undef    mino Oracle           nmx004.wwdc.numonyx.com               Message Text : The Oracle session with the PID 1103 has a CPU time                              consuming of 999.00 minutes for the instance NCD.                              
   24 09/13/08 19:18:37 finished undef    mino Oracle           nmx002.wwdc.numonyx.com               Message Text : SID: psoft in install: /oracle/software error:                              ORA-1652: unable to extend temp segment by 128 in                              tablespace PSTEMP
   21 09/16/08 02:38:58 finished undef    mino Oracle           nmx005.wwdc.numonyx.com               Message Text : SID: hrqa in install: /oracle/software error:                              ORA-1652: unable to extend temp segment by 128 in                              tablespace PSTEMP
      10/08/08 17:34:44 undef    undef    warn OpC              eux1b3.wwdc.numonyx.com               Message Text : Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/msgi/7e6d68a0-8b3b-71d                              9-1958-a481e18f0000_data', policy name 'ESM_fs_opcmsg'                              and policy id '7e6d68a0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/msgi/820f9d70-8b3b-71d                              9-1958-a481e18f0000_data', policy name                              'sy-opcmsg(1|3)' and policy id                              '820f9d70-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Ignoring the policies listed above. (OpC40-1899)
      10/08/08 17:34:44 undef    undef    warn OpC              eux1b3.wwdc.numonyx.com               Message Text : Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7be0751e-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'or-alertlog' and                              policy id '7be0751e-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c20bcfa-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-bootrc' and                              policy id '7c20bcfa-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c31d53a-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-cron' and                              policy id '7c31d53a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c3ba452-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-dmesg' and                              policy id '7c3ba452-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c612506-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-ecc (Unix)'                              and policy id '7c612506-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c71c1b8-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-error' and                              policy id '7c71c1b8-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c798eb6-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-memory' and                              policy id '7c798eb6-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c7cc8ce-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-named' and                              policy id '7c7cc8ce-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c84682c-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-sendmail' and                              policy id '7c84682c-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c8a832e-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-syslog' and                              policy id '7c8a832e-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Ignoring the policies listed above. (OpC40-1899)
    1 10/08/08 17:34:44 undef    undef    warn OpC              eux1b3.wwdc.numonyx.com               Message Text : Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/0541172e-0264-                              71da-0c97-a481e10d0000_data', policy name                              'ST_HP_opcagt_version' and policy id                              '0541172e-0264-71da-0c97-a481e10d0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/61c66462-aa8b-                              71d9-0819-a481e11b0000_data', policy name 'sy-chkemc'                              and policy id '61c66462-aa8b-71d9-0819-a481e11b0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8709366a-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'fc-check'                              and policy id '8709366a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8729c1d2-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'or-apachkproc' and policy id                              '8729c1d2-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/872dabd0-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-check'                              and policy id '872dabd0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8730b8c0-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkarch'                              and policy id '8730b8c0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/873446e8-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkdba'                              and policy id '873446e8-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8737824a-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkdef'                              and policy id '8737824a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/873a608c-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkjob'                              and policy id '873a608c-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/873fd2ce-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chklock'                              and policy id '873fd2ce-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8742873a-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkpen'                              and policy id '8742873a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87459164-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkproc'                              and policy id '87459164-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87497a36-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chksess'                              and policy id '87497a36-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/874ca972-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkuse'                              and policy id '874ca972-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87525516-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'or-iaschkproc' and policy id                              '87525516-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87555482-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'or-jvchkproc' and policy id                              '87555482-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8757e33c-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'or-namesproc' and policy id                              '8757e33c-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87b625d2-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'pa-check'                              and policy id '87b625d2-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88216eb4-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-bckchk'                              and policy id '88216eb4-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88255eb6-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-check'                              and policy id '88255eb6-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88363394-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-check1'                              and policy id '88363394-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8850c11e-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-check2'                              and policy id '8850c11e-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88570a9c-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-check3'                              and policy id '88570a9c-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/885fddc0-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-chkxp'                              and policy id '885fddc0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88632606-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-cluster'                              and policy id '88632606-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88771a8a-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'sy-security' and policy id                              '88771a8a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/887db2a0-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-test'                              and policy id '887db2a0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/888d1fce-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'tz-check'                              and policy id '888d1fce-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Ignoring the policies listed above. (OpC40-1899)

      10/08/08 17:34:54 undef    undef    warn OpC              eux256.wwdc.numonyx.com               Message Text : Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c612506-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-ecc (Unix)'                              and policy id '7c612506-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c71c1b8-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-error' and                              policy id '7c71c1b8-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c798eb6-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-memory' and                              policy id '7c798eb6-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c7cc8ce-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-named' and                              policy id '7c7cc8ce-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c84682c-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-sendmail' and                              policy id '7c84682c-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c8a832e-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-syslog' and                              policy id '7c8a832e-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Ignoring the policies listed above. (OpC40-1899)
      10/08/08 17:36:01 undef    undef    warn OpC              eux1s3.wwdc.numonyx.com               Message Text : Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/msgi/7e6d68a0-8b3b-71d                              9-1958-a481e18f0000_data', policy name 'ESM_fs_opcmsg'                              and policy id '7e6d68a0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/msgi/820f9d70-8b3b-71d                              9-1958-a481e18f0000_data', policy name                              'sy-opcmsg(1|3)' and policy id                              '820f9d70-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Ignoring the policies listed above. (OpC40-1899)
      10/08/08 17:36:01 undef    undef    warn OpC              eux1s3.wwdc.numonyx.com               Message Text : Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7be0751e-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'or-alertlog' and                              policy id '7be0751e-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c20bcfa-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-bootrc' and                              policy id '7c20bcfa-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c31d53a-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-cron' and                              policy id '7c31d53a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c3ba452-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-dmesg' and                              policy id '7c3ba452-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c612506-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-ecc (Unix)'                              and policy id '7c612506-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c71c1b8-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-error' and                              policy id '7c71c1b8-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c798eb6-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-memory' and                              policy id '7c798eb6-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c7cc8ce-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-named' and                              policy id '7c7cc8ce-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c84682c-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-sendmail' and                              policy id '7c84682c-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/le/7c8a832e-8b3b-71d9-                              1958-a481e18f0000_data', policy name 'sy-syslog' and                              policy id '7c8a832e-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Ignoring the policies listed above. (OpC40-1899)
    1 10/08/08 17:36:01 undef    undef    warn OpC              eux1s3.wwdc.numonyx.com               Message Text : Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/0541172e-0264-                              71da-0c97-a481e10d0000_data', policy name                              'ST_HP_opcagt_version' and policy id                              '0541172e-0264-71da-0c97-a481e10d0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/61c66462-aa8b-                              71d9-0819-a481e11b0000_data', policy name 'sy-chkemc'                              and policy id '61c66462-aa8b-71d9-0819-a481e11b0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8709366a-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'fc-check'                              and policy id '8709366a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8729c1d2-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'or-apachkproc' and policy id                              '8729c1d2-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/872dabd0-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-check'                              and policy id '872dabd0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8730b8c0-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkarch'                              and policy id '8730b8c0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/873446e8-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkdba'                              and policy id '873446e8-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8737824a-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkdef'                              and policy id '8737824a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/873a608c-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkjob'                              and policy id '873a608c-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/873fd2ce-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chklock'                              and policy id '873fd2ce-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8742873a-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkpen'                              and policy id '8742873a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87459164-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkproc'                              and policy id '87459164-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87497a36-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chksess'                              and policy id '87497a36-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/874ca972-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkuse'                              and policy id '874ca972-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87525516-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'or-iaschkproc' and policy id                              '87525516-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87555482-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'or-jvchkproc' and policy id                              '87555482-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8757e33c-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'or-namesproc' and policy id                              '8757e33c-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87b625d2-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'pa-check'                              and policy id '87b625d2-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88216eb4-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-bckchk'                              and policy id '88216eb4-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88255eb6-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-check'                              and policy id '88255eb6-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88363394-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-check1'                              and policy id '88363394-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8850c11e-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-check2'                              and policy id '8850c11e-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88570a9c-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-check3'                              and policy id '88570a9c-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/885fddc0-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-chkxp'                              and policy id '885fddc0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88632606-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-cluster'                              and policy id '88632606-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88771a8a-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'sy-security' and policy id                              '88771a8a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/887db2a0-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-test'                              and policy id '887db2a0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/888d1fce-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'tz-check'                              and policy id '888d1fce-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Ignoring the policies listed above. (OpC40-1899)
      10/08/08 17:36:05 undef    undef    warn OpC              eux1s1.wwdc.numonyx.com               Message Text : Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/msgi/7e6d68a0-8b3b-71d                              9-1958-a481e18f0000_data', policy name 'ESM_fs_opcmsg'                              and policy id '7e6d68a0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/msgi/820f9d70-8b3b-71d                              9-1958-a481e18f0000_data', policy name                              'sy-opcmsg(1|3)' and policy id                              '820f9d70-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Ignoring the policies listed above. (OpC40-1899)

After, "Message Text : " , there are more space there than needed.










for e.g. Message Text is as:
Code:
Message Text : Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/0541172e-0264-                              71da-0c97-a481e10d0000_data', policy name                              'ST_HP_opcagt_version' and policy id                              '0541172e-0264-71da-0c97-a481e10d0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/61c66462-aa8b-                              71d9-0819-a481e11b0000_data', policy name 'sy-chkemc'                              and policy id '61c66462-aa8b-71d9-0819-a481e11b0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8709366a-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'fc-check'                              and policy id '8709366a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8729c1d2-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'or-apachkproc' and policy id                              '8729c1d2-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/872dabd0-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-check'                              and policy id '872dabd0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8730b8c0-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkarch'                              and policy id '8730b8c0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/873446e8-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkdba'                              and policy id '873446e8-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8737824a-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkdef'                              and policy id '8737824a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/873a608c-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkjob'                              and policy id '873a608c-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/873fd2ce-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chklock'                              and policy id '873fd2ce-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8742873a-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkpen'                              and policy id '8742873a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87459164-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkproc'                              and policy id '87459164-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87497a36-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chksess'                              and policy id '87497a36-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/874ca972-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'or-chkuse'                              and policy id '874ca972-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87525516-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'or-iaschkproc' and policy id                              '87525516-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87555482-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'or-jvchkproc' and policy id                              '87555482-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8757e33c-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'or-namesproc' and policy id                              '8757e33c-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/87b625d2-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'pa-check'                              and policy id '87b625d2-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88216eb4-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-bckchk'                              and policy id '88216eb4-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88255eb6-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-check'                              and policy id '88255eb6-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88363394-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-check1'                              and policy id '88363394-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/8850c11e-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-check2'                              and policy id '8850c11e-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88570a9c-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-check3'                              and policy id '88570a9c-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/885fddc0-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-chkxp'                              and policy id '885fddc0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88632606-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-cluster'                              and policy id '88632606-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/88771a8a-8b3b-                              71d9-1958-a481e18f0000_data', policy name                              'sy-security' and policy id                              '88771a8a-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/887db2a0-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'sy-test'                              and policy id '887db2a0-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Cannot load policy. Reason: (conf-33) Could not                              validate the signature for policy data file                              '/var/opt/OV/datafiles/policies/monitor/888d1fce-8b3b-                              71d9-1958-a481e18f0000_data', policy name 'tz-check'                              and policy id '888d1fce-8b3b-71d9-1958-a481e18f0000'.                                (OpC40-1867)                              Ignoring the policies listed above. (OpC40-1899)


However, I need to remove extra spaces in a single line, like this.
Code:
Message Text : Cannot load policy. Reason: (conf-33) Could not validate the signature for policy data file '/var/opt/OV/datafiles/policies/monitor/0541172e-0264-71da-0c97-a481e10d0000_data', policy name 'ST_HP_opcagt_version' and policy id '0541172e-0264-71da-0c97-a481e10d0000'. (OpC40-1867) Cannot load policy. Reason: (conf-33) Could not validate the signature for policy data file '/var/opt/OV/datafiles/policies/monitor/61c66462-aa8b-71d9-0819-a481e11b0000_data', policy name 'sy-chkemc' and policy id '61c66462-aa8b-71d9-0819-a481e11b0000'. (OpC40-1867) Cannot load policy. Reason: (conf-33) Could not validate the signature for policy data file '/var/opt/OV/datafiles/policies/monitor/8709366a-8b3b- 71d9-1958-a481e18f0000_data', policy name 'fc-check' and policy id '8709366a-8b3b-71d9-1958-a481e18f0000'. (OpC40-1867) Cannot load policy. Reason: (conf-33) Could not validate the signature for policy data file '/var/opt/OV/datafiles/policies/monitor/8729c1d2-8b3b-71d9-1958-a481e18f0000_data', policy name 'or-apachkproc' and policy id '8729c1d2-8b3b-71d9-1958-a481e18f0000'. (OpC40-1867) Cannot load policy. Reason: (conf-33) Could not validate the signature for policy data file '/var/opt/OV/datafiles/policies/monitor/872dabd0-8b3b-71d9-1958-a481e18f0000_data', policy name 'or-check'  and policy id '872dabd0-8b3b-71d9-1958-a481e18f0000'. (OpC40-1867) Cannot load policy. Reason: (conf-33) Could not validate the signature for policy data file '/var/opt/OV/datafiles/policies/monitor/8730b8c0-8b3b- 71d9-1958-a481e18f0000_data', policy name 'or-chkarch' and policy id '8730b8c0-8b3b-71d9-1958-a481e18f0000'.  (OpC40-1867) Cannot load policy. Reason: (conf-33) Could not validate the signature for policy data file   '/var/opt/OV/datafiles/policies/monitor/873446e8-8b3b- 71d9-1958-a481e18f0000_data', policy name 'or-chkdba' and policy id '873446e8-8b3b-71d9-1958-a481e18f0000'. (OpC40-1867)  Cannot load policy. Reason: (conf-33) Could not  validate the signature for policy data file '/var/opt/OV/datafiles/policies/monitor/8737824a-8b3b- 71d9-1958-a481e18f0000_data', policy name 'or-chkdef'  and policy id '8737824a-8b3b-71d9-1958-a481e18f0000'. OpC40-1867) Cannot load policy. Reason: (conf-33) Could not validate the signature for policy data file '/var/opt/OV/datafiles/policies/monitor/873a608c-8b3b- 71d9-1958-a481e18f0000_data', policy name 'or-chkjob' and policy id '873a608c-8b3b-71d9-1958-a481e18f0000'.  (OpC40-1867) Cannot load policy. Reason: (conf-33) Could not validate the signature for policy data file '/var/opt/OV/datafiles/policies/monitor/873fd2ce-8b3b- 71d9-1958-a481e18f0000_data', policy name 'or-chklock' and policy id '873fd2ce-8b3b-71d9-1958-a481e18f0000'.  (OpC40-1867) Cannot load policy. Reason: (conf-33) Could not  validate the signature for policy data file ..........

I am sorry, you may find it little difficult to read, as this is very long line.

Please help Smilie
Thanks in adv,

Regards,
VIKAS
# 2  
hi,
I found this code. This works fine for such cases,
Code:
 sed -e 's/  */ /g'

BUT what I need is this code to apply to text which comes after "Message Text :"

How can I modify this ?

Regards,
VIKAS
# 3  
One way:
Code:
sed -e 's/Message Text :  [ \t]+/Message Text : /'

# 4  
Data

Quote:
Originally Posted by jim mcnamara
One way:
Code:
sed -e 's/Message Text :  [ \t]+/Message Text : /'

Didn't worked, file remains unchanged.

Any other way ?
Regards,
VIKAS
# 5  
Something is not right.....
Code:
sed 's/Message Text :  /Message Text : /g'

Note: your example has exactly this text:
'Message Text :'

-- that is what I am using for a pattern. Instead of just running the sed on your file make sure the pattern matches what is in the first. Plus are you SURE the white space is not the tab characters? Use this command to see
Code:
od -c myfile

# 6  
Not depending on the tab, but any kind of space/blank/tab:
Code:
sed '/^Message Text/ { s/[[:space:]]\{2,\}/ /g }'

Had also problems testing with "+".
# 7  
Power

Quote:
Originally Posted by zaxxon
Not depending on the tab, but any kind of space/blank/tab:
Code:
sed '/^Message Text/ { s/[[:space:]]\{2,\}/ /g }'

Had also problems testing with "+".
Thanks a million zaxxon, your code works as charm.

These are some more options, I got from others. May be helpful to you or others.

Code:
awk -F'Message text:' '{ gsub(/ +/, " ", $2); print $1 "Message text:" $2; }'

and
Code:
# awk -F"Message Text :" '{print $1}' infile > left
# sed -i 's/$/Message Text :/' left
# awk -F"Message Text :" '{print $2}' infile > right
# sed -i 's/  */ /g' right
# paste -d' ' left right > outfile

Thanks again,
VIKAS

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #355
Difficulty: Medium
BWK awk, also known as nawk, refers to the awk version by Ken Thompson.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Remove line breaks and extra spaces

Hi, I want to remove all extra spaces, line breaks . Need a new line entry only for term starting"array" For eg: my input is array(), array(), array(), and my expected output is array(), array(), array(), Is it possible using awk? (5 Replies)
Discussion started by: rsi.245
5 Replies

2. Shell Programming and Scripting

How to remove spaces on a line?

Hi, suppose I have the following data: albert music=top40 age=20 bob music=punk rock age=25 candy music=r n b age=22 dave music=mozart or bach only age=30 I want to extract and manipulate the music column but it's got spaces in it. How can I substitute the space with an underscore... (2 Replies)
Discussion started by: almonds
2 Replies

3. UNIX Desktop Questions & Answers

To remove the extra spaces at the end of each line in a file

I have a file of about 10k records and eace line is having an extra space of 5 byte at the end.. Iwant to remove the extra spaces at the end of each line.. Can someone please help me out.. I tried using sed command and its not working... can someone please help me out. (3 Replies)
Discussion started by: rammohan
3 Replies

4. Shell Programming and Scripting

Delete line breaks and extra spaces between patterns

Hi, if in between strings "<section" and "</section>" across multiple lines there occurs the string "ole-present", delete all line breaks and replace any tabs or multiple spaces with a single space. Looking for an AWK or SED solution. Thank you. <section ... status = "ole-present" ...... (2 Replies)
Discussion started by: pioavi
2 Replies

5. Shell Programming and Scripting

Remove of extra spaces from the trailing

HI, I need the help from the experts like I have created one file with text like: a b c d e f g h i j k l So my question is that i have to write the script in which like in the first sentence it will take only one space after d and remove all the extra space in the end.I dont... (8 Replies)
Discussion started by: bhanudhingra
8 Replies

6. Shell Programming and Scripting

How to remove extra spaces from a string??

Hi, I have a string like this and i want to remove extra spaces that exists between the words. Here is the sentence. $string="The small DNA genome of hepadnaviruses is replicated by reverse transcription via an RNA intermediate. This RNA "pregenome" contains ... (2 Replies)
Discussion started by: vanitham
2 Replies

7. Shell Programming and Scripting

remove extra spaces between fields

Hi, I have a source file as mentioned below: I want to remove all the extra spaces between the fields. a b--------|sa df-------|3232---|3 sf sa------|afs sdf-----|43-----|33 a b c------|adfsa dsf---|23-32|23 *Here '-' idicates spaces Now, I want output as below: a b|sa df|3232|3... (7 Replies)
Discussion started by: srilaxmi
7 Replies

8. Shell Programming and Scripting

remove trailing spaces from a line

I want to remove the trailing spaces from any line of file. line ending does not follow any pattern. plz help (3 Replies)
Discussion started by: vikas_kesarwani
3 Replies

9. Shell Programming and Scripting

remove leading spaces from a line

Hi friends I need some help, I have a file which looks as follows TEMP 014637065 014637065 517502 517502 RTE 517502 517502 RTE AWATER_TEST 12325 23563 588323 2323 5656 32385 23235635 ANOTHER_TEST 12 5433 FTHH 5653 833 TEST 123 123 3235 5353 353 53 35 353 535 3 YTERS GJK JKLS ... (6 Replies)
Discussion started by: lijojoseph
6 Replies

10. UNIX for Dummies Questions & Answers

To remove the extra spaces in unix

Hi... I am quite new to Unix and would like an issue to be resolved. I have a file in the format below; 4,Reclaim,ECXTEST02,abc123,Harry Potter,5432 6730 0327 5469,0603,,MC,,1200,EUR,sho-001,,1,,,abc123,1223 I would like my output to be as follows; 4,Reclaim,ECXTEST02,abc123,Harry... (4 Replies)
Discussion started by: Sho
4 Replies

Featured Tech Videos