>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
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
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
>/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
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
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
__
6 matches
Mail list logo