![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| SCO Santa Cruz Operation (SCO) was a software company based in Santa Cruz, California which was best known for selling three UNIX variants for Intel x86. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Avoiding rc.local file during reboot | eamani_sun | Linux | 1 | 05-13-2008 10:34 PM |
| Avoiding rc.local file during reboot | eamani_sun | Shell Programming and Scripting | 2 | 05-13-2008 04:28 PM |
| Script needed to select and delete lower case and mixed case records | abhilash mn | Shell Programming and Scripting | 1 | 03-17-2008 04:00 AM |
| how to delete whole directory in special case | cy163 | UNIX for Dummies Questions & Answers | 1 | 05-14-2007 07:19 AM |
| lower case to upper case string conversion in shell script | dchalavadi | UNIX for Dummies Questions & Answers | 3 | 05-28-2002 09:07 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Avoiding duplicates with some special case
Hi Gurus,
I had a question regarding avoiding duplicates.i have a file abc.txt abc.txt ------- READER_1_1_1> HIER_28056 XML Reader: Error [UnterminatedXMLDecl] occurred while parsing:[Error at (file /home/abc.xml, line 6, char 1 ): Invalid document structure.]; line number [6]; column number [1] READER_1_3_1> Sun Mar 23 23:52:48 2008 READER_1_3_1> HIER_28056 XML Reader: Error [UnterminatedXMLDecl] occurred while parsing:[Error at (file /home/abc.xml, line 6, char 1 ): Invalid document structure.]; line number [6]; column number [1] READER_1_2_1> Sun Mar 23 23:52:48 2008 READER_1_2_1> HIER_28056 XML Reader: Error [UnterminatedXMLDecl] occurred while parsing:[Error at (file /home/abc.xml, line 6, char 1 ): Invalid document structure.]; line number [6]; column number [1] READER_1_1_1> Sun Mar 23 23:52:48 2008 READER_1_1_1> HIER_28058 XML Reader Error READER_1_2_1> Sun Mar 23 23:52:48 2008 READER_1_2_1> HIER_28058 XML Reader Error READER_1_3_1> Sun Mar 23 23:52:48 2008 READER_1_3_1> HIER_28058 XML Reader Error. I will get this file when i egrep the session log file for error specific messages. here i want to remove the repeated lines in this file? i am try to use uniq command, but here READER_1_3_1> will be varying in the above abc.txt file i.e., in every line we have 1,2,3 in place of READER_1_**_1>. So i am not getting the desired output. Can any one let me know how to get the requirement done. My output should be READER_1_1_1> HIER_28056 XML Reader: Error [UnterminatedXMLDecl] occurred while parsing:[Error at (file /home/abc.xml, line 6, char 1 ): Invalid document structure.]; line number [6]; column number [1] READER_1_1_1> HIER_28058 XML Reader Error And one more question is there any way to trace out only error messages from session log file using any command? Thanks & Regards, San |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|