Sed is my friend to change fixed-width text files (e.g., from an R screen output) to a comma delimited file using
sed 's/ */,/g' file1 >file2.csv
Note the two spaces between s/
and */
.
Sed is my friend to change fixed-width text files (e.g., from an R screen output) to a comma delimited file using
sed 's/ */,/g' file1 >file2.csv
Note the two spaces between s/
and */
.