In [4]:
l = ['others',
'others',
'others',
'others',
'docker',
'docker',
'elasticsearch_template',
'elasticsearch_template',
'elasticsearch_template',
'elasticsearch_template',
'java',
'java',
'java',
'java',
'java',
'java',
'java',
'java',
'java',
'java',
'java',
'java',
'java',
'java',
'js',
'python',
'python',
'python',
'python',
'python',
'python',
'python',
'python',
'python',
'python',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'shells',
'simulate_keypress',
'simulate_keypress',
'sql',
'sql',
'sql',
    ]

In [5]:
dirlist= list(set(l))

In [6]:
flist = ["./others/flush_dns_cache.md",
"./others/jboss_dynamic_host_rewrite.xml",
"./others/jupyter_shortcuts.md",
"./others/nusoap_utf8_response.php",
"./docker/docker_commads.sh",
"./docker/docker_swarm.sh",
"./elasticsearch_template/ngram_template.json",
"./elasticsearch_template/ngram_template_curl.sh",
"./elasticsearch_template/phonetic_analyzer_template.json",
"./elasticsearch_template/phonetic_analyzer_template_curl.sh",
"./java/CheckPolymorphism.java",
"./java/FunFunctionExperiment.java",
"./java/GsonHelper.java",
"./java/java.gitignore.collection",
"./java/maven_copy_dependencies_to_lib.xml",
"./java/maven_shade_manifest_main_class.xml",
"./java/maven_single_fat_jar.xml",
"./java/mysql_connection_for_spring.properties",
"./java/SieveGenerator.java",
"./java/Singleton.java",
"./java/SmtpMailManager.java",
"./java/spring-boot-swagger-config.md",
"./java/ThreadSafeSingleton.java",
"./java/Trie.java",
"./js/detect_change_in_form.js",
"./python/base64EncDec.py",
"./python/checkAvailIp.py",
"./python/generatePermutationCombination.py",
"./python/improve_pure_functool.py",
"./python/inversion_count.py",
"./python/kill_java_process_on_windows.py",
"./python/local_fileserver.py",
"./python/merge_sort.py",
"./python/OraclePagination.py",
"./python/trie.py",
"./shells/append_file_to_another.sh",
"./shells/check_meltdown_ubuntu.sh",
"./shells/check_start_process.pl",
"./shells/delete_file_and_folder_with_pattern.sh",
"./shells/deploy_jar_to_maven.sh",
"./shells/exportImportMySQLdb.sh",
"./shells/find_file_with_size.sh",
"./shells/find_list_of_files_directory.sh",
"./shells/find_text_in_folder.sh",
"./shells/folder_info.sh",
"./shells/install_python2_krnl_conda.sh",
"./shells/loop_between_files_in_folder.sh",
"./shells/lscpu_monitor.sh",
"./shells/mysql_create_user.sh",
"./shells/mysql_install_config.sh",
"./shells/os_info.sh",
"./shells/process_info.sh",
"./shells/rsync_copy_exclude_dir.sh",
"./shells/sha256_csr_with_openssl.sh",
"./shells/smlink_win.bat",
"./shells/start_ubuntu_in_terminal.sh",
"./shells/update_server_time_from_ntp.sh",
"./shells/video_to_audio_ubuntu.sh",
"./shells/word_count_in_a_file.sh",
"./simulate_keypress/simulate.html",
"./simulate_keypress/simulate_keypress.js",
"./sql/detect_duplicate_value.sql",
"./sql/grantAccessMysql.sql",
"./sql/update_column_seq_val.sql",]

In [9]:
dirlist= list(set(l))
flist = sorted(flist)
flist

current = ""

for f in flist:
    for d in dirlist:
        if f.startswith("./{0}".format(d)):
            current = d
            print("\n### [" + current + "](./" + current + "/)\n")
            dirlist.remove(d)
    fileName = f.strip()[len(current)+3:]
    print("* [{0}]({1})".format(fileName, f))


### [docker](./docker/)

* [docker_commads.sh](./docker/docker_commads.sh)
* [docker_swarm.sh](./docker/docker_swarm.sh)

### [elasticsearch_template](./elasticsearch_template/)

* [ngram_template.json](./elasticsearch_template/ngram_template.json)
* [ngram_template_curl.sh](./elasticsearch_template/ngram_template_curl.sh)
* [phonetic_analyzer_template.json](./elasticsearch_template/phonetic_analyzer_template.json)
* [phonetic_analyzer_template_curl.sh](./elasticsearch_template/phonetic_analyzer_template_curl.sh)

### [java](./java/)

* [CheckPolymorphism.java](./java/CheckPolymorphism.java)
* [FunFunctionExperiment.java](./java/FunFunctionExperiment.java)
* [GsonHelper.java](./java/GsonHelper.java)
* [SieveGenerator.java](./java/SieveGenerator.java)
* [Singleton.java](./java/Singleton.java)
* [SmtpMailManager.java](./java/SmtpMailManager.java)
* [ThreadSafeSingleton.java](./java/ThreadSafeSingleton.java)
* [Trie.java](./java/Trie.java)
* [java.gitignore.collection](./java/java.gitignore.collection)
* [maven_copy_dependencies_to_lib.xml](./java/maven_copy_dependencies_to_lib.xml)
* [maven_shade_manifest_main_class.xml](./java/maven_shade_manifest_main_class.xml)
* [maven_single_fat_jar.xml](./java/maven_single_fat_jar.xml)
* [mysql_connection_for_spring.properties](./java/mysql_connection_for_spring.properties)
* [spring-boot-swagger-config.md](./java/spring-boot-swagger-config.md)

### [js](./js/)

* [detect_change_in_form.js](./js/detect_change_in_form.js)

### [others](./others/)

* [flush_dns_cache.md](./others/flush_dns_cache.md)
* [jboss_dynamic_host_rewrite.xml](./others/jboss_dynamic_host_rewrite.xml)
* [jupyter_shortcuts.md](./others/jupyter_shortcuts.md)
* [nusoap_utf8_response.php](./others/nusoap_utf8_response.php)

### [python](./python/)

* [OraclePagination.py](./python/OraclePagination.py)
* [base64EncDec.py](./python/base64EncDec.py)
* [checkAvailIp.py](./python/checkAvailIp.py)
* [generatePermutationCombination.py](./python/generatePermutationCombination.py)
* [improve_pure_functool.py](./python/improve_pure_functool.py)
* [inversion_count.py](./python/inversion_count.py)
* [kill_java_process_on_windows.py](./python/kill_java_process_on_windows.py)
* [local_fileserver.py](./python/local_fileserver.py)
* [merge_sort.py](./python/merge_sort.py)
* [trie.py](./python/trie.py)

### [shells](./shells/)

* [append_file_to_another.sh](./shells/append_file_to_another.sh)
* [check_meltdown_ubuntu.sh](./shells/check_meltdown_ubuntu.sh)
* [check_start_process.pl](./shells/check_start_process.pl)
* [delete_file_and_folder_with_pattern.sh](./shells/delete_file_and_folder_with_pattern.sh)
* [deploy_jar_to_maven.sh](./shells/deploy_jar_to_maven.sh)
* [exportImportMySQLdb.sh](./shells/exportImportMySQLdb.sh)
* [find_file_with_size.sh](./shells/find_file_with_size.sh)
* [find_list_of_files_directory.sh](./shells/find_list_of_files_directory.sh)
* [find_text_in_folder.sh](./shells/find_text_in_folder.sh)
* [folder_info.sh](./shells/folder_info.sh)
* [install_python2_krnl_conda.sh](./shells/install_python2_krnl_conda.sh)
* [loop_between_files_in_folder.sh](./shells/loop_between_files_in_folder.sh)
* [lscpu_monitor.sh](./shells/lscpu_monitor.sh)
* [mysql_create_user.sh](./shells/mysql_create_user.sh)
* [mysql_install_config.sh](./shells/mysql_install_config.sh)
* [os_info.sh](./shells/os_info.sh)
* [process_info.sh](./shells/process_info.sh)
* [rsync_copy_exclude_dir.sh](./shells/rsync_copy_exclude_dir.sh)
* [sha256_csr_with_openssl.sh](./shells/sha256_csr_with_openssl.sh)
* [smlink_win.bat](./shells/smlink_win.bat)
* [start_ubuntu_in_terminal.sh](./shells/start_ubuntu_in_terminal.sh)
* [update_server_time_from_ntp.sh](./shells/update_server_time_from_ntp.sh)
* [video_to_audio_ubuntu.sh](./shells/video_to_audio_ubuntu.sh)
* [word_count_in_a_file.sh](./shells/word_count_in_a_file.sh)

### [simulate_keypress](./simulate_keypress/)

* [simulate.html](./simulate_keypress/simulate.html)
* [simulate_keypress.js](./simulate_keypress/simulate_keypress.js)

### [sql](./sql/)

* [detect_duplicate_value.sql](./sql/detect_duplicate_value.sql)
* [grantAccessMysql.sql](./sql/grantAccessMysql.sql)
* [update_column_seq_val.sql](./sql/update_column_seq_val.sql)

In [ ]: