The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Appending text to a number of similar filenames Djaunl UNIX for Dummies Questions & Answers 4 10-09-2007 08:16 PM
Remove Similar Lines from a File Nysif Steve Shell Programming and Scripting 3 09-04-2007 07:20 AM
counting the number of lines nayeemmz Linux 6 01-19-2005 09:37 AM
Counting the number of lines in ASCII file alarmcall Shell Programming and Scripting 8 08-26-2003 03:53 PM
Counting The Number Of Duplicate Lines In a File crunchtime UNIX for Dummies Questions & Answers 2 07-04-2003 10:24 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #8  
Old 05-15-2008
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,609
this should have been in a new thread.

Mods - could you please make this as a new thread
Reply With Quote
Forum Sponsor
  #9  
Old 05-16-2008
Registered User
 

Join Date: Jun 2007
Location: Beijing China
Posts: 472
Code:
sed 's/E/ E/' file | awk '{
sum[$2]++
}
END{
for (i in sum)
print "OMAK EXCLUDE "i" "sum[i]" "1341
}'
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0