Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d65d6d1
commit 01fa04e
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#txt2mongo# | ||
with txt2mongo you can check the integrity of your lexicon text files as | ||
used in farhang. You pass the file name or wildcard along to check the | ||
file entries. If you pass in a database name as a second argument txt2mongo | ||
will store the entries in your mongodb. If you don't get any output it means | ||
your files are ok. If you get filenames and line numbers it means you need to | ||
correct them. Usually a ";" is forgotten. | ||
To check all files you need to put '*.txt' into quotation marks: | ||
|
||
run like this: | ||
ruby txt2mongo file.txt|'*.txt' [database] | ||
example: | ||
ruby txt2mongo k.txt test_db | ||
or: | ||
ruby txt2mongo '*.txt' |