![]() |
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 |
| Grepping the last 30 minutes of a log file... | jtelep | Shell Programming and Scripting | 2 | 03-06-2008 12:27 AM |
| grepping for period . in file name ? ie grep . | bobk544 | UNIX for Dummies Questions & Answers | 5 | 12-01-2007 02:31 AM |
| Loop and grepping into a file | skotapal | Shell Programming and Scripting | 3 | 08-26-2002 09:28 PM |
| grepping the first 3 characters from a file | rachael | UNIX for Dummies Questions & Answers | 2 | 10-15-2001 02:33 PM |
| grepping the first 3 characters from a file | g-e-n-o | UNIX for Dummies Questions & Answers | 2 | 10-15-2001 06:11 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Grepping Errors in a file
Hey All,
I have to grep for an error from a file and get the results of errror in a different file...... But there should be no duplicate entries. Can anyone help me in giving a shell script for this This is file which contains pattern error which I am supposed to grep and put this in a different file....And this should happen everyday 2007-02-01 23:00:18 Error : this file has error 2007-02-05 24:00:00 date : this afiel ca 2007-02-01 13:00:00 Error : Hi again 2007-02-04 23:00:00 Error : this is again a error 2007-02-04 15:05:00 Error : hi |
|
||||
|
Oh!
Thats a cool one! The OP had asked for sorted output and thats why sort -u was included. Hope that was a typo! |
| Sponsored Links | ||
|
|