I want to run a line of code to create a Text to columns output on a file which is comma delimited.
I have created a file which results in the output been created in the format comma delimited. So all the data is in column A separated by a ,
.
The file is apilist.xls
I want to add a line of code that will take the data here and separate out the data in to the columns, similar to the excel command text to columns.
I have tried:
$ cat apilist.xls | tr "\\t" "," > apilist.csv
This gives the message:
bash: $: command not found
It creates the apilist.csv
file but there is no data in this.
Any suggestions on how to progress this?
$ cat apilist.xls | tr "\\t" "," > apilist.csv
Delimited output - move the data from one column to be separated into multiple columns.