Re: regex question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



>Dunno but Google 'sed only first match' gives some answers...

I resorted to just using a  perl one liner. It wasn't as straight forward as that. Using
sed's {p;q;} syntax with the pattern provides the functionality, but it was the capture
group only I was interested, and not the whole line which I couldn't make work with
those commands.

Perl was simpler, don't know why I didn't think of that initially.

Thanks,
jlc
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux