Created by: Moath Thawahreh
Description: This script utilizes node js to filter all the related files inside a folder into subfolders based on the first word splitted by '-', i.e: both files spanish-35.txt and spanish-34.txt will be moved to a new subfolder spanish. -The subfolders handling can be modified as needed -
Usage:
- Move the script to the same path that contains the folder that has the files to be sorted / or just test it over the mock data -files folder-
- In the terminal run the script: node main.js
Note:
-Node must be installed on the system
-No third libraries were used