我正在尝试编写一个 bash 脚本来导入 CSV 文件并将其发送到网络上的某个地方。如果我使用手写的 CSV,即:
summary,description
CommaTicket1,"Description, with a comma"
QuoteTicket2,"Description ""with quotes"""
CommaAndQuoteTicke3,"Description, with a commas, ""and quotes"""
DoubleCommaTicket4,"Description, with, another comma"
DoubleQuoteTicket5,"Description ""with"" double ""quoty quotes"""
READ 命令能够很好地读取文件。但是,如果我在 Excel 中创建“相同的文件”(即:具有相同的字段),则 READ 无法正常工作,通常只读取第一个值,仅此而已。
在相对较新的 Bash 脚本中,所以如果有人认为我的代码有问题,我会上传它,但它似乎是 Excel for Mac 保存文件的方式有问题,我想有人可能对此有一些想法。
你们可以贡献的任何东西都将不胜感激。干杯!