The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Grepping Errors in a file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Grepping Errors in a file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
02-05-2007
matrixmadhan
Technorati Master
Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,958
Code:
sed
-n '/Error/p' currfile |
sed
's/\(.*\):\(.*\):\(.*\)/Error :\3/' | sort -u > newfile
matrixmadhan
View Public Profile
Find all posts by matrixmadhan
Find matrixmadhan's past nominations received
Find matrixmadhan's present nominations given