[CentOS] regex help

Joseph L. Casale JCasale at activenetwerx.com
Tue May 12 22:57:21 UTC 2009


>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 handles another case where
that could be an issue, thanks for pointing that out!

jlc



More information about the CentOS mailing list