Counting all words that start with a capital letter in a string using python dictionary
Hi,
I have written the following python snippet to store the capital letter starting words into a dictionary as key and no of its appearances as a value in this dictionary against the key.
In the above code, I am using the array index to check for the uppercase. But when I tried to re-code it using the regular expression as:
that is not fetching me the anticipated output. Expecting your help in this regard.
:confused:
Hye everybody i would like to know if exist a internet site where i can founs some interesting shell script very usefull
I need to transform hundreds names of files escribed in CAPITAL letter in minuscule letter
do oyu know a mean o do that that thanks to a script or a shell... (1 Reply)
Hi,
I want to be able to list all the names in a file which begin with a capital letter, but I don't want it to list words that begin a new sentence. Is there any way round this?
Thanks for your help. (1 Reply)
Hi,
I just want to search a file for any words containng a capital letter and then display these words only as a list
I have been trying grep but to no has not helped.(im using the bash shell) (7 Replies)
Hello,
I am receiving a file every day as this format. Since today is friday, the format is, PGI_STG_FRIDAY14.TXT.
I need to write the shell script to check if this file exist in folder...
I am using date format..
export DATE=`date '+%A'`
echo $DATE
The output is Friday
But i... (8 Replies)
I need to use bash to convert sentences where all words start with a small letter into one where all words start with a capital letter.
So that a string like:
are utilities ready for hurricane sandy
becomes:
Are Utilities Ready For Hurricane Sandy (10 Replies)
Hi,
I am trying to remove lines once a string is found till another string is found including the start string and end string. I want to basically grab all the lines starting with color (closing bracket). PS: The line after the closing bracket for color could be anything (currently 'more').... (1 Reply)
Hi
I have strings like these :
Vengeance mitt
Men Vengeance gloves
Women Quatro Windstopper Etip gloves
Quatro Windstopper Etip gloves
Girls Thermobite hooded jacket
Thermobite Triclimate snow jacket
Boys Thermobite Triclimate snow jacket
and I would like to get the lower case words at... (2 Replies)
Hi,
I need to replace, as the title says, the first letter of each line (when it's not a number) by the same letter, but capital.
For instance :
hello
Who
123pass
Would become :
Hello
Who
123pass
Is there a way with sed to do that ? Or other unix command ?
Thank you :) (7 Replies)
Discussion started by: ganon551
7 Replies
LEARN ABOUT DEBIAN
cwdreg
CWDREG(1) General Commands Manual CWDREG(1)NAME
cwdreg - To register characters/words into the binary format
dictionary.
SYNOPSIS
cwdreg [-D server ] -n envname
-d dicno < textdic
OR
cwdreg [-D server ] -n envname
-L filename < textdic
DEFAULT PATH
/usr/local/bin/cWnn4/cwdreg
DESCRIPTION
This function allows user to register characters/words into the specified binary dictionary, with either dictionary number dicno or dictio-
nary filename filename specified.
server is the machine name of the server. If this is not specified, the default cserver indicated by the environment variable CSERVER will
be taken.
"-n envname " must be specified. envname is the environment name. You may execute "cwnnstat -E" to see the current environment name.
Either "-d dicno " or "-L filename " must be specified.
dicno is the dictionary number. filename is the filename of the dictionary. "-L" is used for when the dictionary is from the local
machine.
"<" means to pipe the textdic as an input to "cwdreg" command.
textdic is the text file which user enters the characters/words to be registered. The format of this text file must be the same as that
in the system text format dictionary. That is,
--------------------------------------------------
| Pinyin Word Cixing Frequency |
| : : : : |
--------------------------------------------------
Refer to cWnn manual for details on dictionary.
By using "cwdreg", all the characters/words in textdic will be registered into the specified binary dictionary permanently.
NOTE
1. The parts in [ ] are options. They may be omitted.
13 May 1992 CWDREG(1)