Bash shell script - Read file and add deliminator.
I have a file (.dat) with fields that are not seperated by any deliminators, but by position and need to convert it to a csv file. I need a bash script to read the .dat file, find the fields based on positions and write to a new csv file with the deliminator.
For example, my dat file contains
and need to convert it to: