I have a text file I am trying to set up to import into my DB. I need to delete everything on each line after a certain position on the line. I also need to insert commas into multiple fixed positions on each line. The end goal being a csv file which I will import into my DB.
I assume there is a regex or VIM command to insert delete by position but I am very new to both and my searches have not provided a good answer.