Re: [CentOS] regex help

2009-05-12 Thread Joseph L. Casale
>Wouldn't that match something like /dev/sda11 ? I tried a few >variations though didn't figure out the exact syntax(so used to >perl regex) to match exactly 1 number at the end of the line. Yup, but the script cleans the disc and makes 6 partitions so I am safe. OTOH, there is a portion which ha

Re: [CentOS] regex help

2009-05-12 Thread nate
Joseph L. Casale wrote: >>/dev.*5$ > > Thanks, I don't know what I was thinking. Been looking at this script > too long and I wanna go home:) I got it anyway with grep '^/dev.*1$' Wouldn't that match something like /dev/sda11 ? I tried a few variations though didn't figure out the exact syntax(so

Re: [CentOS] regex help

2009-05-12 Thread Robert Nichols
Joseph L. Casale wrote: > I need a little help, trying to search for a line that begins with /dev > and ends with a single digit that I will choose, like 5. I can search for > ^/dev and 5$ but I am having trouble forming the combined search pattern > using egrep. If you mean any single digit not p

Re: [CentOS] regex help

2009-05-12 Thread Joseph L. Casale
>/dev.*5$ Thanks, I don't know what I was thinking. Been looking at this script too long and I wanna go home:) I got it anyway with grep '^/dev.*1$' jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] regex help

2009-05-12 Thread Filipe Brandenburger
Hey, On Tue, May 12, 2009 at 18:11, Joseph L. Casale wrote: > ^/dev and 5$ but I am having trouble forming the combined search pattern > using egrep. > Any ideas? /dev.*5$ ? HTH, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.or

[CentOS] regex help

2009-05-12 Thread Joseph L. Casale
I need a little help, trying to search for a line that begins with /dev and ends with a single digit that I will choose, like 5. I can search for ^/dev and 5$ but I am having trouble forming the combined search pattern using egrep. Any ideas? Thanks! jlc __