Hi Freinds ,
I want to convert the files that are in text format (.txt) to CSV file. I am working on Linux. So can anyone guide me.
Here is my problem Description
I have some result files which contains text fields and numeric fields which are seperated by tab and also there is a - between two numbers 10-20 .
Another thing is that colons are also present in between in files
name :: praveen
Also my another concern is if have different kinds of output fields in the file how to convert those into csv. what i mean is , for example if there is a text file in which i will have the following fields
Name Age Location School College
So in the result files all the above columns may be present or any of these may be present . But minimum first 3 columns will be present . So what is the solution . Does the csv file contain a blank if the values are not specified ?
Then how should i convert these kind of text files into csv file (Comma Seperated values) Files .
Should i write my own code or is there any utilities that can help me convert these text files into csv files
Thanks in advance
Praveen
I want to convert the files that are in text format (.txt) to CSV file. I am working on Linux. So can anyone guide me.
Here is my problem Description
I have some result files which contains text fields and numeric fields which are seperated by tab and also there is a - between two numbers 10-20 .
Another thing is that colons are also present in between in files
name :: praveen
Also my another concern is if have different kinds of output fields in the file how to convert those into csv. what i mean is , for example if there is a text file in which i will have the following fields
Name Age Location School College
So in the result files all the above columns may be present or any of these may be present . But minimum first 3 columns will be present . So what is the solution . Does the csv file contain a blank if the values are not specified ?
Then how should i convert these kind of text files into csv file (Comma Seperated values) Files .
Should i write my own code or is there any utilities that can help me convert these text files into csv files
Thanks in advance
Praveen
Comment