Hello,
I have a dictionary of over 400,000 words with the following structure
source=target
The database contains single words as well as phrases. To train the data, I need only mappings with out a space i.e. where both source and target do not have any space in between.
I use Ultraedit as my editor and have been using the following regex in Unix to identify a blank space
^[^ ]+$
Since the database is too large, the editor runs out of memory and cannot store all instances to the clipboard.
Am giving below a small sample text
=
=
=/
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
The script should identify only those entries without a space on either side and store them in a separate file, as in the sample output below
=
=
=
=
=
=
=
A perl or awk script would help. I work in a windows environment.
Many thanks.