I have a VERY simple data analysis/text formatting bash script (30 lines not including the very extensive comments) ? which I wrote for some research analysis work. ? It uses the kdialog system hooks found in KDE to present a minimal GUI to the user (choose directory, name data set prompts, etc).
This script (which could probably be optimized, but that's not a requisite for this project) opens a series (usually several hundred) of tab-separated text files, and re-orders the data into a single csv output file, using the filenames and file content to determine number of files in the directory to process and the name of each piece of data (carefully explained in the comments).
I'd like this bash script converted over to a platform agnostic toolkit, so I can run it on Windows, preferably as a script in Python, so that it can be further edited in the future. ? I don't care what GUI toolkit is used as long as it is free and runs on Windows XP or higher.
Attached is the bash script ( [url removed, login to view] ), a sample output file ( [url removed, login to view] ), and a zip file ( [url removed, login to view] ) containing 100 test files ( [url removed, login to view] to [url removed, login to view] ).
The script should be able to handle? arbitrary? text in the filename before the number ( "kinetics-1_" is typical but not universal). ? The content of the .stx files will always have a consistent header (lines 1-22) but will have variable amount of "probes" (lines 23-- ).
Thanks for help with this, hopefully straightforward, coding challenge!