Niki.ai Assignment
Objective: Given a directory containing only text files, recursively traverse the entire directory and print all the telephone numbers(base 10-digit format Indian mobile numbers and its variations) - can use bash scripting, python, java, C - or any other language.
Solution: The current repository contains the solution in Python and shell script.
Usage
To run the program with given sample csv files:
python phone.py
To run the shell script .\phone.sh
To run the tests:
python -m unittest discover tests -v
To generate documents:
sphinx-apidoc -F -o docs .
Assumption
I am assuming that all the data is in CSV files which contain just the phone column.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
TODO
- Add Code in more languages
License
MIT License