Linux / UNIX Tech Support Forum
This is a discussion on script to find repeted number/alphabet within the Shell scripting forums, part of the Development/Scripting category; Hi I want to know that how can i find a repeated number/alphabet which has been repeated many times? Regards ...
|
Register free or login to your existing account and remove all advertisements. |
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
Try grep command:
Code:
grep -w "word" filename grep "123567" filename Code:
grep -cw "word" filename grep -c "123567" filename
__________________
Vivek Gite Linux Evangelist |
![]() |
| Tags |
| count numbers , count words , grep , linux , shell scripting , unix |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script to count number of lines in file specified by the second command-line | seaman77 | Shell scripting | 1 | 03-16-2009 08:46 PM |
| to find whether update is successfull or not using Ksh Script | ali560045 | Shell scripting | 0 | 01-06-2009 04:02 PM |
| Command to find which process is utilizing max number of resources in Red hat Linux | Santosh Sharma | Linux software | 0 | 01-19-2008 04:12 PM |
| Script to display number of lines and words from a file | newbewie | Shell scripting | 2 | 12-07-2007 11:37 PM |