I have a lot of csv files that I am having trouble reading since the delimiter is ',' and one of the fields is a list with comma separated values in square brackets. As an example:
first,last,list John,Doe,['foo','234','&3bar'] Johnny,Does,['foofo','abc234','d%9lk','other'] I would like to change the delimiter to '|' (or whatever else) to get:
first|last|list John|Doe|['foo','234','&3bar'] Johnny|Does|['foofo','abc234','d%9lk','other'] How can I do this? I'm trying to use sed right now, but anything that works is fine.