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. UNIX for Dummies Questions & Answers
It is very interesting to learn the unix, i just struck with a doubt like i have below content in my file
i just want know the word count by using grep -wc 'xyz' <filename>,
but it is giving 3 instead of 4.So i understood that it is showing matched line numbers count... (2 Replies)
Discussion started by: vmachava
3. Shell Programming and Scripting
Im trying to make a bash file that will take another file and count how many lines there are and then count how many words are in each line.
Any help would be great. (15 Replies)
Discussion started by: syco__
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. UNIX for Advanced & Expert Users
Script that lists all words used in one or more files and displays their count (pattern /\W+/ to split the lines of the input file into words can b used)..
It should display list in format word:count...gets Filename as an cmd line argument!
eg: $perl test doc (where doc is d file we are going to... (4 Replies)
Discussion started by: aadi_uni
6. 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
7. Shell Programming and Scripting
i have a requirement to count the errors and display from a file.
sjdgfjdgfgd ora-0001 sdjgfydh sdukgh7 23
sjdgfjdgfgd ora-0002 sdjgfydhsf34 ew 34v
sjdgfjdgfgd ora-0008 sdjgfydh asdf asdfas
sjdgfjdgfgd ora-0001 sdjgfydhjkbs ui873
sjdgfjdgfgd ora-0004 sdjgfydh... (9 Replies)
Discussion started by: unx100
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
9. 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
10. UNIX for Dummies Questions & Answers
given a file
i need to get the first line and secodn line
and count each of the line whether the length of first line and second line is the same
i don;t know how to get the length of the line...seems like use 'wc' cannot do it...
please advice (1 Reply)
Discussion started by: ariuscy