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, |
In reply to Re: help with Grep
by Athanasius
in thread help with Grep
by beanscake
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |