10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am trying to figure out to find word count of each word from my file
hi how are you
hi are you ok
sample out put
wc -l filename is not helping , i think we will have to split the lines and count and then print and also... (4 Replies)
Discussion started by: mirwasim
2. Shell Programming and Scripting
family balance >>>>>
java.io.FileNotFoundException: Settings.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at... (2 Replies)
Discussion started by: linuxadmin
3. UNIX for Dummies Questions & Answers
How do I do a grep wc that counts occurences of two or more different strings?
If I have string1 two times and string2 three times, how do I use wc to get the number 5? (1 Reply)
Discussion started by: locoroco
4. Shell Programming and Scripting
I need to count the lines of a file stack.html and if the amount lines i want to do something.
At this moment, I have
This is not working. Any ideas?
Thanks! (3 Replies)
Discussion started by: azertyazerty
5. Shell Programming and Scripting
Hi all, I am trying to write a command that can help me count the number of lines in the /etc/passwd file ending in bash.
I have read through other threads but am yet to find one indicating how to locate a specifc word at the end of a line. I know i will need to use the wc command but when i... (8 Replies)
Discussion started by: warlock129
could someone explain this please.
echo aaaa|wc -c
echo aaaa|wc -m
But I'd expect the count to be 4
Its SunOS 5.8
Thanks in Advance. (5 Replies)
Discussion started by: chaandana
7. UNIX for Dummies Questions & Answers
Please let me know how to get the count of a particular word in a file. Example. I am looking for count of word 'result' in a file abc.xml.
Shankar (10 Replies)
Discussion started by: s_chowhan
8. UNIX for Dummies Questions & Answers
I've got following script that I thought would only email me when the if clause finds the grep. But it emails me anyway (with an empty file) even if the grep doesn't return anything.
What should the line be?
then grep -l 'unique constraint' $LOGDIR/archive_active* >... (3 Replies)
Discussion started by: Meert
9. Shell Programming and Scripting
hi iam trying to do a specified word count on file
i have a few ideas but don't get the result i want
do any one have a idea
i have this at the moment
echo "Please enter the word you are looking for:"
echo "the word < $string > occurs in... (5 Replies)
Discussion started by: bhaviknp
10. Shell Programming and Scripting
I have a file .. file.txt .. i need to get a total record count in the files into a $variable.. im using perl script
thanks (4 Replies)
Discussion started by: meghana