[CentOS] regex question
Joseph L. Casale
jcasale at activenetwerx.comTue Jun 7 10:21:50 UTC 2011
- Previous message: [CentOS] regex question
- Next message: [CentOS] bind-libs - key problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>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
- Previous message: [CentOS] regex question
- Next message: [CentOS] bind-libs - key problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list