New Bash Script - guidance requested
Hello,
I need to write a bash script that can automatically pick up .bas files (Visual Basic Log files) and translate them into a spreadsheet. Then of course, dropping them off where they need to go. Does anyone have any experience with this? I know it is possible to translate them using M$ office but I don't really want to do this with powershell or wine. Thanks, |
Members may not know anything about a .bas file or its format including me. Can you provide an example.
The easiest the way to translate them into a something any spreadsheet application can read is to convert the files to a CSV (Comma Separated Variable) or tab delimited file. |
Quote:
we would need the format of both. i don't know what "spreadsheet" as a generic term is supposed to mean; maybe the csv previously mentioned is sufficient. |
http://file.org/extension/bas says
"Files that contain the .bas file extension are most commonly associated with program source code that has been written in the BASIC programming language." Source code generally being text? No mention of them being log files... I also think some clarity is needed. Leave out the references to proprietary software/OSs and the wine software. How would you describe the problem? |
Sorry, I got that a little jumbled up.
The Balancer logs balance data to a file called mv6 I rename that file to mv6.csv and open it with excel, then run a decodemodule.bas in a new visual basic window to make the log files readable. Is this something that can be scripted to work with Libreoffice or Openoffice? |
Maybe, without knowing anything about the VB script I can't say 100% that it could modified to run in Libreoffice or Openoffice. Since the log file appears to be a CSV file already the VB script probably could be rewritten in another language as another option.
|
Here's the module:
Quote:
|
Not a Libreoffice basic expert by any means but a first glance I don't see anything that can not be converted.
|
All times are GMT -5. The time now is 08:56 AM. |