10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
can i get a simple script for , Count same word which has come many times in single lines & pars
Eg file would be ==
"Thanks heman thanks thanks
So resullt should be
Thanks = 5
man = 1
thanks in advance :)
Please use code tags for code and... (1 Reply)
Discussion started by: heman96
2. UNIX for Dummies Questions & Answers
Please can you help how do I count the number of specific characters or words that appear in a file? (8 Replies)
Discussion started by: fretagi
3. UNIX for Dummies Questions & Answers
Hello Is there a way to calculate how many times a particular symbol appeared in a string before a particular word.
So, I want to count number of occurence of"/" in this directory before the word dog lets say.
Bob (3 Replies)
Discussion started by: FUTURE_EINSTEIN
4. Shell Programming and Scripting
Output shud be (1 Reply)
Discussion started by: cdfd123
5. Shell Programming and Scripting
I wanted to know if there is a shell command to print a word n number of times
The Input File is :
Output File required is :
Kite (4 Replies)
Discussion started by: sam_2921
6. Shell Programming and Scripting
I'm trying to learn some scripts but i cant get my head around two of them.
1. how can i write a script that will count the number of times a particular word is used in file?
2. how can i make a script that will take me to a web page from unix?
if anyone could help it... (3 Replies)
Discussion started by: BigTool4u2
7. Shell Programming and Scripting
I've been looking on the internet, and haven't found anything simple enough to use in my code. All I want to do is count how many times "-" occurs in a string of characters (as a package name). It seems it should be very simple, and shouldn't require more than one line to accomplish.
And this is... (2 Replies)
Discussion started by: Shingoshi
8. Shell Programming and Scripting
Can anybody suggest me, how to get the count of digits in a word
echo $WORD | grep -oE ] | wc -l
It works in bash command line, but not in scripts :mad: (12 Replies)
Discussion started by: ./hari.sh
9. Shell Programming and Scripting
Hi Folks !!!!!!!!!!!!!!!!!!!
My Requirement is.............
i have a input file:
and my o/p should be
i.e. the word which occurs maximum number of times in a file should be... (5 Replies)
Discussion started by: aajan
10. Shell Programming and Scripting
I want to count the number of occurence of perticular word from one text file.
Please tell me "less" command is work in ksh or not. If it is not working then instead of that which command will work. :confused: (40 Replies)
Discussion started by: rinku