I need to set a separator “,” on a csv file and on the entire file so it can be human readable when opened with a excel.
I have:
Message,Uncounted File
Unknown File Extension,/dir/file1
Unknown File Extension,/dir/file2
Unknown File Extension,/dir/file3
and I need
Message Uncounted File
Unknown File Extension /dir/file1
Unknown File Extension /dir/file2
Unknown File Extension /dir/file3
Where Message uncounted file are two columns. The csv file contains reality more columns, this is an extract.
I tried
S=`echo -e ","`
sort -t"$S" myfile
and every sort -t possible…
Anyone ?
Try sed. This should give you an idea (its untested though)