I\'m trying to parse a .csv file and I have some problems with IFS. The file contains lines like this:
\"Hello\",\"World\",\"this\",\"is, a boring\",\"line\" >
give this a try:
sed 's/","/"\n"/g' <<<"${line}"
sed has a search and replace command s which is using regex to search pattern.
sed
s
The regex replaces , in "," with new line char.
,
","
As a consequence each element is on a separate line.