in reply to Obtain CSV Fiile from text

That line comes from a CSV producer. Is it possible to ask (them) to add a field that *only* has the source file?

Assuming the line comes out the file named export.csv, you could try an overly safe approach like this:

$ cat export.csv 3,"2014-02-19 14:29:05","Extracted 1 Unfulfilled Reconciliation record +s into /opt/mysql/backup/recon/201312/input/UNFULFILLED_RECONCILIATIO +N_20130225.CSV","URECONCILIATION" $ perl -MText::CSV_XS=csv -wE'for(@{csv(in=>"export.csv")}){say for ma +p{s/.* into //i;$_}grep/\.csv/i=>@$_}' /opt/mysql/backup/recon/201312/input/UNFULFILLED_RECONCILIATION_201302 +25.CSV $

Requires Text::CSV_XS-1.04, but it is a one-liner now.


Enjoy, Have FUN! H.Merijn