12-22-2012
BASH - Counting word occurrences in a Web Page
Hi all, I have to do a script bash (for university) that counts all word occurrences in a specific web page.
anyone can help me?. Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am a newbie in UNIX shell script and seeking help on this UNIX function. Please give me a hand. Thanks.
I have a large file. Named as 'MyFile'. It was tab-delmited. I am told to write a shell function that counts the number of occurrences of the ord “mysring” in the file 'MyFile'. (1 Reply)
Discussion started by: duke0001
1 Replies
2. Shell Programming and Scripting
Hi All,
Is it possible to count number of occurrences of a pattern in a single record using awk??
for example:
a line like this:
abrsjdfhafa
I want to count the number of a character occurrences. but still use the default RS, I don't want to set RS to single character. (1 Reply)
Discussion started by: ghoda2_10
1 Replies
3. Homework & Coursework Questions
Assistance on work Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Files stored in ... (1 Reply)
Discussion started by: alindner
1 Replies
4. Shell Programming and Scripting
Hey Unix gurus,
I would like to count the number occurrences of all the words (regardless of case) across multiple files, preferably outputting them in descending order of occurrence. This is well beyond my paltry shell scripting ability.
Researching, I can find many scripts/commands that... (4 Replies)
Discussion started by: twjolson
4 Replies
5. Shell Programming and Scripting
I am trying to count the occurrences of ALL words in a file. However, I want to exclude certain words: short words (i.e. <3 chars), and words contained in an blacklist file. There is also a desire to count words that are capitalized (e.g. proper names). I am not 100% sure where the line on... (5 Replies)
Discussion started by: Cronk
5 Replies
6. Shell Programming and Scripting
I'm pretty new to scripting and didn't see an example of this issue yet. I am trying to count and print the total number of times each value is found within a file. Here is a short example of my starting file.
value 3
value 3
value 3
value 3
value 4
value 6
value 6
value 6
value 6... (3 Replies)
Discussion started by: funkynmr
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have two text files (1.txt and 2.txt).
2.txt contains two columns which are extracted from 1.txt using a simple if(condition) print.
I want to:
- count how many times the values contained in 2.txt appear in 1.txt
-if they appear just one time, I have to delete the entire row in... (5 Replies)
Discussion started by: Pintug
5 Replies
8. UNIX for Advanced & Expert Users
I was thinking something like this but it always gets rid of the file location.
grep -roh base. | wc -l
find . -type f -exec grep -o base {} \; | wc -l
Would this be a job for awk? Would I need to store the file locations in an array? (3 Replies)
Discussion started by: cokedude
3 Replies
9. Shell Programming and Scripting
I'm putting together a script that will the count the occurrences of words in text documents. It works fine so far, but I'd like to make a couple tweaks/additions:
1) I'm having a hard time displaying the array index number, tried freq which just spit 0's back at me
2) Is there any way to... (12 Replies)
Discussion started by: ksmarine1980
12 Replies
10. Shell Programming and Scripting
hello,
I am trying to refresh my web page which is created in bash script.
I have a HTML page which when press a button calls a bash script. this bash script created the same page with dynamic data.
When pressing the button I am calling to a function that set time out of 7 seconds and and after... (1 Reply)
Discussion started by: SH78
1 Replies
LEARN ABOUT DEBIAN
vlatai
vlatai(1L) vlatai(1L)
NAME
vlatai - Lojban word analyzer
SYNOPSIS
vlatai [ -v ] [ word ]
DESCRIPTION
vlatai is a program that reads a list of Lojban words from standard input, one word per line. In its usual mode, it writes a single output
line for each input line, advising of which kind of Lojban word the input line is. If the input word has cmavo prefixed onto it, vlatai
shows the individual cmavo and the base word itself.
In the verbose mode (obtained using -v), the workings of the internal state machines used for scanning the word are exposed. This may give
some insight into where an error lies on words that can't be parsed, especially if the output is used in conjuction with the report files
built during the compilation process.
Note that vlatai is primarily a testbench for the word categorizer/splitter inside jbofihe. vlatai is not fully supported or documented as
a stand-alone program.
OPTIONS
-v Verbose; show lots of information about the evolution of the internal state
word The word to check. If no 'word' argument is supplied, the program reads words from standard input, one word per line (with no
whitespace around it.)
REFERENCES
http://go.to/jbofihe
Home page for the jbofihe project (of which cmafihe is part)
http://www.lojban.org/
Home page of the Lojban community
http://www.rrbcurnow.freeuk.com/lojban/
My Lojban page.
AUTHOR
Richard Curnow <rpc@myself.com>
December 2000 vlatai(1L)