in reply to Re: Obtain CSV Fiile from text
in thread Obtain CSV Fiile from text

Apologies to all I have been off for a couple of days, but thanks to all who came to my aid... in the end I went with..

file=`echo $line | perl -n -l -e ' ($f) = $_ =~ m!.*/(\w+.csv)!i; print $f'

I think my shell collegues were wary of this kind of magic :-) once again my thanks to you all