From: Ryan Davis Date: 2012-09-08T06:53:25+09:00 Subject: Re: regix in grep or something like this On Sep 7, 2012, at 14:34 , Ferdous ara wrote: > Sorry.. is not it better to give the solution rather then pulling some > else's Leg ??? > > ok (I dont know grep,Surrender) > would be able to tell me > which Grep parameter will give me output : > > only /dev/cciss/c0d1p1 line by providing c0d1 ,(not cod1p1) > > > > From here : > /dev/cciss/c0d1p1 > /dev/cciss/c0d10p1 > /dev/cciss/c0d11p1 > /dev/cciss/c0d12p1 here's how you can practice it: http://rubular.com Paste the data above into the "text string" box, then try your regexp in the regexp box. It'll show what it matches live. You can then tweak the regexp until it matches everything you want.