Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Obtain CSV Fiile from textby hazylife (Monk) |
on Mar 06, 2014 at 13:36 UTC ( [id://1077229]=note: print w/replies, xml ) | Need Help?? |
How's this: echo "$your_line" | perl -nle 'print if s/.*?\s(\S+\.csv).*/$1/i'
EDIT: or, even better: perl -nle 'print if s#[^/]+(/\S+?\.csv).*#$1#i'
In Section
Seekers of Perl Wisdom
|
|