![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| search 2 lines and delete above line | shamushamu | Shell Programming and Scripting | 4 | 10-06-2008 05:43 PM |
| need help cutting consecutive lines with sed or awk | raghin | Shell Programming and Scripting | 2 | 06-04-2008 04:59 AM |
| grab next consecutive line or lines | wisher115 | Shell Programming and Scripting | 1 | 12-07-2006 08:01 AM |
| Appending Consecutive lines | pondlife | Shell Programming and Scripting | 8 | 08-13-2004 05:36 AM |
| Cutting n consecutive lines from a file... | Vishnu | UNIX for Dummies Questions & Answers | 2 | 10-18-2002 10:49 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi all coders,
I need a help to process some data. I have this file, Code:
3 09/21/08 03:32:07 started undef mino Oracle nmx004.wwdc.numonyx.co
m
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.co
m
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.co
m
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.co
m
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
Selected active Page: 2
Dup. Date/Time Auto St. Oper St. Sev. Message Group Node Name
----- ----------------- -------- -------- ---- ---------------- -------------------
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)
Can we use sed here, actually I come across an example in which we can specify a line and delete next few lines from it. delete few lines after a specific line Code:
# delete 6 lines from line 8 sed -i 8,+6d file.txt I am sure "sed/awk" can help me but not able to use, tried google and many hit and trials, but could not succeed. ![]() Pls help. Thanks in adv. Regards, VIKAS |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|