如何将制表符分隔的文件转换为 CSV 格式? [英] How to convert a tab separated file to CSV format?

查看:26
本文介绍了如何将制表符分隔的文件转换为 CSV 格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个这种格式的文本文件:

I have a text file in this format :

{

attribute1 attribute2 attribute3.... attributeN

value"A" value"B" value"C".... value"Z"

/* next line of values*/

}

每个单词都用制表符分隔.

Each word is separated by a tab.

如何转换为 CSV 格式?我尝试使用 Excel,但它给出了兼容性问题.

How do I convert to CSV format? I tried using Excel but it's giving compatibility issues.

推荐答案

使用 excel 导入数据(数据 > 从文本文件加载),使用制表符作为列分隔符.然后将文件保存为 csv.

Import the data with excel (Data > Load from text file), using tab as a column separator. Then save the file as csv.

它不会有兼容性问题,这是一项基本任务,我过去经常这样做.

It cannot have compatibility issues, it's a basic task and i did it quite often in the past.

这篇关于如何将制表符分隔的文件转换为 CSV 格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆