Thanks to people's help, I have composed a single line within a .sh script that Ports a file into a csv:
perl -p -i -e 's/^(.{11})(.{6})(.{1})(.{2})(.{2})(.{2})(.{16})(.{5})(.{9})(.{8})(.{16})(.{23})(.{2})(.{2})(.{2})/"$1","$2","$3","$4","$5","$6","$7","$8""$9","$10","$11","$12","$13","$14","$15"/g' < /home/myfile.txt >/home/myfile.csv
From the web I found this perl script that uses regular expressions to pull the white space (extra spaces) from a list.
Perl - Trim whitespaces > beginning and end
#!/usr/bin/perl -w
use strict;
my @strings = (" foo ", " bar ", " foo bar ");
for (1..100000) {
foreach my $string (@strings) {
$string =~ s/^\s+//;
$string =~ s/\s+$//;
}
}
Now, I believe I could kludge this together by reading in the newly created file as a string... however :would there be a better way of doing it?
In a language like Tcl I could just use the trim command on each element... but in Perl how would I do it?
More appropriately what is the "right way" of doing this?