The project_count.py allows you list all script files under project,and Calculate how many codes are under the project
the script Receive two parameters: you project path(ex:/path/project1),script extension(.py)
Ex:python project_count.py /opt/Nhids .py
The /opt/Nhids project have .py file as follows:
1:/opt/Nhids/conf/init.py, row_nums:0
2:/opt/Nhids/conf/setting.py, row_nums:15
3:/opt/Nhids/nhids/init.py, row_nums:0
4:/opt/Nhids/nhids/data_process.py, row_nums:76
5:/opt/Nhids/nhids/elastic_query.py, row_nums:42
6:/opt/Nhids/nhids/log.py, row_nums:42
7:/opt/Nhids/nhids/main.py, row_nums:29
8:/opt/Nhids/nhids/redis_queue.py, row_nums:35
The total code numbers is 239
The total file numbers is:8