From: sto.mar@... Date: 2012-09-08T21:00:46+09:00 Subject: Re: regix in grep or something like this Am 07.09.2012 23:18, schrieb Ferdous ara: > HI > thanks for the solution > problem is i am not that good in Regix.. and Currently I have very less > time to learn .. > as I am doing some project and trying to finish this quicly so i am > just asking those small bit when i dont know.. > may be after i finish the projet.. i will give more time to lear n A friendly suggestion: please learn *now*! That will save you (and us) a lot of time. This really is most basic stuff, and if you keep asking these kind of questions you risk that people eventually won't help you anymore when you are in real trouble. a simplistic solution: 1.9.3-p194 :001 > drive = 'c0d1' => "c0d1" 1.9.3-p194 :002 > /#{drive}p/ === '/dev/cciss/c0d1p1' => true 1.9.3-p194 :003 > /#{drive}p/ === '/dev/cciss/c0d11p1' => false > > the regix i am affer is > > /dev/cciss/c0d11p1 > /dev/cciss/c0d1p1 > > c0d1 > its end with number > then Charater > > p1 > > > also problem is : > i need to provide only c0d1 > i cant provide full path > --