The UNIX and Linux Forums  
Hej och välkommen från USA till UNIX och Linux Forum! Tack för ditt besök och gå med i vår globala gemenskapen.

Go Back   UNIX och Linux Forum > Upp Forum > Shell-programmering och Skript
.
google unix.com



Shell-programmering och Skript Post frågor om ksh, CSH, SH, bash, PERL, PHP, sed, awk och andra skalskript och skal skriptspråk här.

Mer UNIX och Linux Forum Ämnen Du kan hitta Helpful
Tråd Thread Starter Forum Svar Senaste Inlägg
hur append utrymmen (t.ex. 10 mellanslag) i slutet av varje rad baseras på hur lång th prathima UNIX for Dummies Frågor & Svar 17 01-28-2009 04:10
ta bort extra mellanslag Agarwal Shell-programmering och Skript 2 04-25-2008 05:54
undanröja ledande utrymmen från en linje lijojoseph Shell-programmering och Skript 6 03-17-2008 05:29
Om du vill ta bort extra mellanslag i UNIX Sho UNIX for Dummies Frågor & Svar 4 05-04-2006 06:58
bort extra raderna i filen CamTu Shell-programmering och Skript 8 03-29-2005 02:13

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Sök i denna tråd Rate Thread Visningslägen
  #1 (permalänk)  
Old 10-10-2008
vikas027 vikas027 is offline
Registered User
  
 

Join Date: oktober 2007
Inlägg: 77
Question Ta bort extra mellanslag i en rad

Hej,

Jag behöver hjälp med att ta bort extra mellanslag i en text.

Jag har en stor fil, en del av det är: --

Kod:
    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)
Efter "Meddelandetext : "Det finns mer plats där än nödvändigt.










för t ex Meddelandetext är:
Kod:
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)

Men jag måste ta bort extra blanksteg i singel line, like this.
Kod:
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 ..........
Jag är ledsen, kanske du tycker att det är lite svårt att läsa, eftersom det är mycket lång rad.

Please help
Tack i adv,

Hälsningar,
Vikas
  #2 (permalänk)  
Old 10-10-2008
vikas027 vikas027 is offline
Registered User
  
 

Join Date: oktober 2007
Inlägg: 77
hej,
Jag hittade den här koden. Detta fungerar bra för sådana fall,
Kod:
 sed -e 's/  */ /g'
Men vad jag behöver är denna kodex tillämpas på text som kommer efter "Meddelande:"

Hur kan jag ändra detta?

Hälsningar,
Vikas
  #3 (permalänk)  
Old 10-10-2008
jim McNamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: februari 2004
Ort: NM
Inlägg: 5.759
Ett sätt:
Kod:
sed -e 's/Message Text :  [ \t]+/Message Text : /'
  #4 (permalänk)  
Old 10-10-2008
vikas027 vikas027 is offline
Registered User
  
 

Join Date: oktober 2007
Inlägg: 77
Unhappy

Citat:
Ursprungligen postat av jim McNamara View Post
Ett sätt:
Kod:
sed -e 's/Message Text :  [ \t]+/Message Text : /'
Har inte fungerat, fortfarande finns kvar oförändrad.

Något annat sätt?
Hälsningar,
Vikas
  #5 (permalänk)  
Old 10-10-2008
jim McNamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: februari 2004
Ort: NM
Inlägg: 5.759
Något inte står rätt .....
Kod:
sed 's/Message Text :  /Message Text : /g'
Observera: ditt exempel har exakt den här texten:
"Message Text:"

- Det är vad jag använder för mönster. Istället för att köra sed på filen Kontrollera mönstret matchar det är i den första. Plus är du säker på det vita utrymmet inte är tabbtecken? Använd detta kommando för att se
Kod:
od -c myfile
  #6 (permalänk)  
Old 10-10-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Ort: Tyskland
Inlägg: 2.285
Inte beroende på vilken flik, men någon typ av utrymme / blank / fliken:
Kod:
sed '/^Message Text/ { s/[[:space:]]\{2,\}/ /g }'
Hade också problem testa med "+".
  #7 (permalänk)  
Old 10-10-2008
vikas027 vikas027 is offline
Registered User
  
 

Join Date: oktober 2007
Inlägg: 77
Red face

Citat:
Ursprungligen postat av zaxxon View Post
Inte beroende på vilken flik, men någon typ av utrymme / blank / fliken:
Kod:
sed '/^Message Text/ { s/[[:space:]]\{2,\}/ /g }'
Hade också problem testa med "+".
Thanks a million Zaxxon, fungerar din kod som charm.

Det är några fler alternativ, jag fick från andra. Kan vara till hjälp för dig eller andra.

Kod:
awk -F'Message text:' '{ gsub(/ +/, " ", $2); print $1 "Message text:" $2; }'
och
Kod:
# 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
Tack än en gång,
Vikas
Closed Thread

Komihåglista

Thread Tools Sök i denna tråd
Sök i denna tråd:

Avancerad sökning
Visningslägen Betygsätt denna tråd
Betygsätt denna tråd:

Utstationering Regler
Du får inte efter nya trådar
Du får inte efter svar
Du får inte skicka bilagor
Du får inte redigera dina inlägg

BB-kod är
Smilies är
[IMG] kod
HTML-koden är Av
Trackback är
Pingbacks är
Refbacks är




Alla tider är GMT -4. Klockan är nu 02:44.


Powered by: vBulletin, Copyright © 2000 - 2006, Jelsoft Enterprises Limited. Översättningar Powered by .
vBCredits v1.4 Copyright © 2007 - 2008, PixelFX Studios
UNIX och Linux Forum Innehållet upphovsrättsskyddat © 1993-2009. All Rights Reserved.Ad förvaltning RedTyger

Content Relevant webbadresser från vBSEO 3.2.0