The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 07-10-2009
unx100 unx100 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 19
HI Gersh99,

Thank you again for the prompt reply and it working fine and working much faster to my code(which I mentioned in the 1st post).
Nawk is something new to me, searched in the beginners unix book (by wrox) nothing much available.

Please correct me if Im worng :
The code is taking 'space' as the space separator.
and if the file is somewhat like this :

Code:
sjhgfjhgdfs ora-0001 kjhsf 098j 97h
suiy23vb jhf8 ora-0001
jkhsdkj 98798 error:ora-0001 uif987

then am getting the output not as ora-0001 : 3 but as

Code:
ora-0001 : 2
error:ora-0001 : 1

is there anyway i can extract only words starting with ora-

Last edited by vgersh99; 07-10-2009 at 07:48 AM.. Reason: code tags, PLEASE!