Re: csv with multiline records

2016-12-14 Thread Ole Tange
On Wed, Dec 14, 2016 at 2:04 AM, Ryan Brothers wrote: : > Is there a way to use --pipe to process a csv that could have multiple > lines for a single record? For example: > > row1,"1 > 2 > 3" > row2,4 > > I'd like to treat the above as 2 rows for parsing purposes. This would require GNU Parallel

Re: csv with multiline records

2016-12-14 Thread Ryan Brothers
Ole, On Wed, Dec 14, 2016 at 2:36 PM, Ole Tange wrote: > But if you can somehow replace the record separator, then you can use > --recend. > > Given your input this might work: > > parallel --pipe --recend '"\n" > > assuming a good part of the records have a last column with newlines. Thank