I have this input file on a Linux machine where there are mutliple lines with such:
123, 'John, Nesh', 731, 'ABC, DEV, 23', 6, 400 'Text'
123, 'John, Brown', 140, 'ABC, DEV, 23', 6, 500 'Some other, Text'
123, 'John, Amazing', 1, 'ABC, DEV, 23', 8, 700 'Another, example, Text'
etc.
And I want to remove any ,
that is found within a single quoted field. Expected output:
123, 'John Nesh', 731, 'ABC DEV 23', 6, 400 'Text'
123, 'John Brown', 140, 'ABC DEV, 23', 6, 500 'Some other Text'
123, 'John Amazing', 1, 'ABC DEV, 23', 8, 700 'Another example, Text'
'
characters? And if so, how are they escaped (''
,\'
?)? – Stéphane Chazelas Oct 26 '22 at 14:28