in reply to help with Grep

Hello beanscake,

Your question is not very clear, but I suspect grep is not the best tool for this job. Are you looking for something like this?

12:07 >perl -MData::Dump -wE "my @opts; push @opts, /optional:([^\s]+) +/ for @ARGV; dd \@opts;" x y z optional:01 grep 02 optional:z53 ["01", "z53"] 12:09 >

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Replies are listed 'Best First'.
Re^2: help with Grep
by beanscake (Acolyte) on Mar 30, 2015 at 02:52 UTC

    thank you