Sponsored Content
Top Forums Shell Programming and Scripting Finding the most frequently occurring set of words Post 302405954 by drewk on Sunday 21st of March 2010 12:08:51 AM
Old 03-21-2010
What is the definition of a set?

ie, only two always? Are there some phonemes that naturally go with each other?

There needs to be some defined rules for this....
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

finding no of counts the words occured

hi, cud u help me to find this. i hav 2 files. file1 has data as "ARUN ARUN is from Australia Arun likes America etc.. ARUN ARUN " file2 has "ARUN Australia America" i... (5 Replies)
Discussion started by: arunsubbhian
5 Replies

2. Shell Programming and Scripting

Display most top 10 occurring words along with number of ocurences of word inthe text

I need Display the most top 10 occurring words along with the number of occurences of those words in the given text. Sample text as below: "The Travails of Single South Indian men of conservative upbringing" or "Why we don't get any..." Yet another action packed weekend in Mumbai, full of... (2 Replies)
Discussion started by: smacherla
2 Replies

3. UNIX for Dummies Questions & Answers

Adding words after a set of words

Greetings. I am a UNIX newbies. I am currently facing difficulties dealing with a large data set and I would like to ask for helps. I have a input file like this: ak 1 AAM1 ak 2 AAM1 ak 3 AAM1 ak 11 AMM2 ak 12 AMM2 ak 13 AMM2 ak 14 AMM2 Is there any possibility for me to... (7 Replies)
Discussion started by: Amanda Low
7 Replies

4. Shell Programming and Scripting

Finding the number of unique words in a file

find the number of unique words in a file using sort com- mand. (7 Replies)
Discussion started by: abhikamune
7 Replies

5. Shell Programming and Scripting

finding and removing 2 identical consecutive words in a text

i want to write a shell script that correct a text file.for example if i have the input file: "john has has 2 apples anne has 3 oranges oranges" i want that the output file be like this: "john has 2 apples anne has 3 oranges" i've tried to read line by line from input text file into array... (11 Replies)
Discussion started by: cocostaec
11 Replies

6. Shell Programming and Scripting

Finding consecutive same words in a file

Hi All, I tried this but I am having trouble formulating this: I have a file that looks like this (this is a sample file words can be different): network router frame network router computer card host computer card One can see that in this file "network" and "router" occur... (3 Replies)
Discussion started by: shoaibjameel123
3 Replies

7. Shell Programming and Scripting

Finding my lost file by searching for words in it

Got a question for you guys...I am searching through a public directory (that has tons of files) trying to find a file that I was working on a longggggg time ago. I can't remember what it is called, but I do remember the content. It should contains words like this: Joe Pulvo botnet zeus... (5 Replies)
Discussion started by: statichazard
5 Replies

8. Shell Programming and Scripting

Finding compound words from a set of files from another set of files

Hi All, I am completely stuck here. I have a set of files (with names A.txt, B.txt until L.txt) which contain words like these: computer random access memory computer networking mouse terminal windows All the files from A.txt to L.txt have the same format i.e. complete words in... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies

9. Shell Programming and Scripting

How count the number of two words associated with the two words occurring in the file?

Hi , I need to count the number of errors associated with the two words occurring in the file. It's about counting the occurrences of the word "error" for where is the word "index.js". As such the command should look like. Please kindly help. I was trying: grep "error" log.txt | wc -l (1 Reply)
Discussion started by: jmarx
1 Replies

10. Shell Programming and Scripting

Search a column a return a set of words

Hi I have two files. One is a text file consisting of sentences i.e. INPUT.txt and the second file is SEARCH.txt consisting of two or three columns. I need help to write a script to search the second column of SEARCH.txt for each set of five words (blue color as set one and green color as set... (6 Replies)
Discussion started by: my_Perl
6 Replies
ctype(3)						     Library Functions Manual							  ctype(3)

Name
       isalpha,  isupper,  islower,  isdigit,  isxdigit,  isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isascii - character classification
       macros

Syntax
       #include <ctype.h>

       int isalpha (c)

       int c;

Description
       These macros classify character-coded integer values according to the rules of the coded character set (codeset)  identified  by  the  last
       successful call to category All macros return non-zero for true and zero for false.

       If  category  has  not been called successfully, or if character classification information is not available for a supported language, then
       characters are classified according to the rules of the ASCII 7-bit coded character set, returning 0 for values above octal 0177.

       The macro provides a result for all integer values.  The rest provide a result for EOF and values in the character  range  of  the  codeset
       identified by the last successful call to category

       c	      is a letter

       c	      is an uppercase letter

       c	      is a lowercase letter

       c	      is a digit

       c	      is a hexadecimal digit, by default [0-9], [A-F], or [a-f]

       c	      is an alphanumeric character

       c	      is a space, tab, carriage return, new line, or form feed

       c	      is a punctuation character (neither control, alphanumeric, nor space)

       c	      is a printing character, by default code 040(8) (space) through 0176 (tilde)

       c	      is a printing character, like except false for space

       c	      is a delete character(0177) or ordinary control character (less than 040) except for space characters

       c	      is an ASCII character, code less than 0200

   International Environment
       LC_CTYPE       If this environment variable is set and valid, uses the international language database named in the definition to determine
		      character classification rules.

       LANG	      If this environment variable is set and valid, uses the international language database named in the definition to determine
		      the character classification rules. If is defined, that definition supercedes the definition of

See Also
       conv(3), setlocale(3), stdio(3s), environ(5int), ascii(7)
       Guide to Developing International Software

																	  ctype(3)
All times are GMT -4. The time now is 01:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy