02-21-2017
Many thanks. I am sorry, I should have specified that I work in a Windows environment.
Playing round with the AWK regex, I found that it worked beautifully as a Unix regex. My text-editor allows me to choose Unix/Perl as Regexes. All I had to was strip off the forward slashes and I could identify all the singletons.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
how can i get the dictionary words in vim using keyboard keys?
and how can i get the current directory filename? (1 Reply)
Discussion started by: lakshmananindia
1 Replies
2. Shell Programming and Scripting
hi,
is it possible to find the number of occurences of a pattern between two paranthesis.
for e.g
i have a file as below.
>>{
>>hi
>>GoodMorning
>>how are you?
>>}
>>is it good,
>>tell me yes, if it is good
In the above file, its clear the occurence of word "Good"... (17 Replies)
Discussion started by: divak
17 Replies
3. UNIX for Dummies Questions & Answers
First of all, please have mercy on me. I am not a noob to programming, but I am about as noob as you can get with regex. That being said, I have a problem.
I've got a string that looks something like this:
Publication - Bob M. Jones, Tony X. Stark, and Fred D. Man, \"Really Awesome Article... (1 Reply)
Discussion started by: egill
1 Replies
4. Shell Programming and Scripting
I have a text file in UTF-8 format which has the following data structure
HEADWORD=gloss1,gloss2,gloss3 etc
I want to convert it so that all the glosses of the HeadWord appear on separate lines
HEADWORD=gloss1
HEADWORD=gloss2
HEADWORD=gloss3
An example will illustrate the requirement... (4 Replies)
Discussion started by: gimley
4 Replies
5. Shell Programming and Scripting
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.
#!/usr/bin/env python
import sys
import re
hash = {} # initialize an empty dictinonary
for line in... (1 Reply)
Discussion started by: royalibrahim
1 Replies
6. Shell Programming and Scripting
I am reworking a Marathi-English dictionary to be out on open-source. My dictionary has the Headword in Marathi, followed by its Part of Speech and subsequently by its English glosses as in the examples below;
अकरसणें v i To contract, shrink.
अकरा a Eleven.
अकराळ a Frightful, terrible.
विकराळ... (2 Replies)
Discussion started by: gimley
2 Replies
7. Shell Programming and Scripting
Hi,
I have a huge unsorted text file. We wanted to identify the unique field values in a line and consider those fields as a primary key for a table in upstream system.
Basically, the process or script should fetch the values from each line that are unique compared to the rest of the lines in... (13 Replies)
Discussion started by: manikandan23
13 Replies
8. Shell Programming and Scripting
I am working on Sindhi: a perso-Arabic script and since it shares the Unicode-block with over 400 other languages, quite often the database contains characters which are not wanted: illegal characters.
I have identified the character set of Sindhi which is given below:
For clarity's sake, each... (8 Replies)
Discussion started by: gimley
8 Replies
9. UNIX for Beginners Questions & Answers
Hi
In a file I have string in multiple lines. Like below:
<?=test.getObjectName("L", "testTBL","D") ?>
<?=test.getObjectName("L", "testTBL","testDB", "D") ?>
I want to use regex to search for the pattern "<?=test.getObjectName...?>"
If the parenthesis has 3 parameters then return 2nd... (5 Replies)
Discussion started by: dashing201
5 Replies
LEARN ABOUT OPENSOLARIS
gnome-dictionary
gnome-dictionary(1) User Commands gnome-dictionary(1)
NAME
gnome-dictionary - look up words in an online dictionary
SYNOPSIS
gnome-dictionary [--database=database] [--list-sources] [--look-up=word] [--match=word] [--no-window] [--source=source] [--strategy=strat-
egy] [gnome-std-options]
DESCRIPTION
The Dictionary application enables you to look up an online dictionary for the definitions and correct spelling of words.
OPTIONS
The following options are supported:
-D, --database=database Specify the database to use.
-l, --list-sources Show available dictionary sources.
--look-up=word Specify the word to look up.
--match=word Specify the word to match.
-n, --no-window Print definitions found on the console without launching the GUI.
-s, --source=source Uses the specified source for looking up words. This does not affect the global settings.
-S, --strategy=strategy Specify the strategy to use.
gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more infor-
mation.
OPERANDS
None.
EXAMPLES
Example 1: Launching Dictionary
example% gnome-dictionary
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/gnome-dictionary Executable for Dictionary.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-dictionary |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO
Dictionary Manual
Latest version of the GNOME Desktop User Guide for your platform.
attributes(5), gnome-std-options(5)
NOTES
Written by Glynn Foster, updated by Brian Cameron, Sun Microsystems Inc., 2007.
SunOS 5.11 09 Nov 2007 gnome-dictionary(1)