Skip to content

Commit

Permalink
added README
Browse files Browse the repository at this point in the history
  • Loading branch information
burningTyger committed Jun 18, 2011
1 parent d65d6d1 commit 01fa04e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
@@ -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'

0 comments on commit 01fa04e

Please sign in to comment.