I’ve this issue: I’ve a CSV file that contains some data in this format:
100,30,1.704,,7
101,,suka,,5
and I should import this CSV inside mysql table
As you can seen, this csv has empty fields, denoted by double commas ‘,,’ . I want using sed and regular expression, define pattern ,, and if it’s matched substituing it with number 58 inside my csv file .
Anyone can help me, I don’t knwo regex very well.
This might work for you: