Searching and Sorting CSV file using C++, Python, and Shell Script

How to search and sort CSV files:

In this project, we had to sort and search through a sizable CSV dataset depending on specific criteria. We used C++, Python, and Shell Script, three separate programming languages, to complete this challenge.



We used multiple languages for different areas of the project since each had its own advantages and disadvantages. Because it has a quicker runtime and can effectively handle massive volumes of data, C++ was employed to improve the sorting procedure. Python was selected since it includes built-in modules that are helpful for working with CSV files to search through the file and extract the needed criteria. Ultimately, the complete procedure was automated using Shell Script, starting with executing the application and ending with creating the output file. The CSV file was divided into smaller pieces for sorting, and each piece was sorted separately using a modified quicksort algorithm written in C++.
 
We read the CSV file using Python's csv module in order to search for certain criteria, and we then extracted the rows that met the user's requirements. The user might then evaluate the newly created CSV file that contained the retrieved data. Ultimately, we automated the entire procedure using Shell Script. The script would run the required C++ and Python programs when the user entered the desired criteria, creating the output file without the need for any manual input. Overall, we were able to improve our code and increase process efficiency by using a variety of programming languages.
 

Next Post Previous Post
No Comment
Add Comment
comment url