Search Unix Commands/Scripts

  Help us in improving the repository. Add new commands/scripts through 'Submit Commands/Scripts ' link.

Unix Commands/Scripts for '#Word count' - 2 Commands/Scripts found

 Sample 1. count number of error / exception occurences in a file.

sed -n '/ERROR/,/EST/p' /opt/WebSphere/AppServer/profiles/application/logs/SystemOut.log | grep "LogicBlockSetupException" | wc -l

   Like      Feedback     sed  grep  word count  wc  wc -l

 Sample 2. Count words in a File

grep "Text" file.txt | wc -l

   Like      Feedback     count words in a file  grep  wc  word count

Subscribe to Java News and Posts. Get latest updates and posts on Java from
Enter your email address:
Delivered by FeedBurner