简体   繁体   中英

Bash creating csv from values

I'm trying to create a csv in my bash script from some values I'm getting from another non-csv file. The problem I see is that the values have commas(,) in them.

The csv file wrong because of that (the values with commas in them are 2 or more different values now) Is there any way to get rid of that problem or any other way to build a csv in a bash script. I can create any other files too, it just needs to be compatible with standard sql import.

Thanks

I now added quotation marks before and after every value and it works great. The csv looks like it should.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM